Interface ISession
  
  Summary description for ISession.
Assembly: EPiServer.BaseLibrary.dll
  Version: 7.19.2
  Syntax
  
    public interface ISession
   
  
  
  Methods
  
  
  
  
  AddRelation(Object, Object)
  
  
  Declaration
  
    void AddRelation(object fromId, object toId)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | fromId |  | 
      
        | System.Object | toId |  | 
    
  
  
  
  
  BeginTransaction()
  
  
  Declaration
  
  
  
  
  Close()
  
  
  Declaration
  
  
  
  
  CommitTransaction()
  
  
  Declaration
  
  
  
  
  CreatePath(String)
  
  
  Declaration
  
    IItem CreatePath(string path)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.String | path |  | 
    
  
  Returns
  
  
  
  
  CreatePath(String, IItem)
  
  
  Declaration
  
    IItem CreatePath(string path, IItem current)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.String | path |  | 
      
        | IItem | current |  | 
    
  
  Returns
  
  
  
  
  Delete(Object)
  
  
  Declaration
  
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | id |  | 
    
  
  
  
  
  ExecuteQueryId<ITEMTYPE>(Query)
  
  
  Declaration
  
    IList ExecuteQueryId<ITEMTYPE>(Query query)
    where ITEMTYPE : IItem
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Query | query |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Collections.IList |  | 
    
  
  Type Parameters
  
    
      
        | Name | Description | 
    
    
      
        | ITEMTYPE |  | 
    
  
  
  
  
  ExecuteQueryObject<ITEMTYPE>(Query)
  
  
  Declaration
  
    IList<ITEMTYPE> ExecuteQueryObject<ITEMTYPE>(Query query)
    where ITEMTYPE : IItem
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Query | query |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Collections.Generic.IList<ITEMTYPE> |  | 
    
  
  Type Parameters
  
    
      
        | Name | Description | 
    
    
      
        | ITEMTYPE |  | 
    
  
  
  
  
  Load(Object)
  
  
  Declaration
  
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | id | Id of the object to load. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | IItem | The instantiated object. Null if the object does not exist. | 
    
  
  
  
  
  
  
  LoadPath(String)
  
  
  Declaration
  
    IItem LoadPath(string path)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.String | path |  | 
    
  
  Returns
  
  
  
  
  LoadPath(String, IItem)
  
  
  Declaration
  
    IItem LoadPath(string path, IItem current)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.String | path |  | 
      
        | IItem | current |  | 
    
  
  Returns
  
  
  
  
  
  
  
  Declaration
  
    IList<IItem> RelatedItemsFrom(object fromId)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | fromId |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Collections.Generic.IList<IItem> |  | 
    
  
  
  
  
  
  
  
  Declaration
  
    IList<ITEMTYPE> RelatedItemsFrom<ITEMTYPE>(object fromId)
    where ITEMTYPE : IItem
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | fromId |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Collections.Generic.IList<ITEMTYPE> |  | 
    
  
  Type Parameters
  
    
      
        | Name | Description | 
    
    
      
        | ITEMTYPE |  | 
    
  
  
  
  
  
  
  
  Declaration
  
    IList<IItem> RelatedItemsTo(object toId)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | toId |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Collections.Generic.IList<IItem> |  | 
    
  
  
  
  
  
  
  
  Declaration
  
    IList<ITEMTYPE> RelatedItemsTo<ITEMTYPE>(object toId)
    where ITEMTYPE : IItem
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | toId |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Collections.Generic.IList<ITEMTYPE> |  | 
    
  
  Type Parameters
  
    
      
        | Name | Description | 
    
    
      
        | ITEMTYPE |  | 
    
  
  
  
  
  RemoveRelation(Object, Object)
  
  
  Declaration
  
    void RemoveRelation(object fromId, object toId)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | fromId |  | 
      
        | System.Object | toId |  | 
    
  
  
  
  
  RollbackTransaction()
  
  
  Declaration
  
    void RollbackTransaction()
   
  
  
  
  Save(IItem)
  
  
  Declaration
  
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IItem | item | The item to save. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean | True if the item was created in the object store, False it an existing item was updated. |