Syntax

C#
public interface ISessionFactoryHolder

The type exposes the following members.

Public Methods

  NameDescription
Public methodCreateSession
Creates a session for the associated type
Public methodFailSession
Called if an action on the session fails
Public methodGetAllConfigurations
Pendent
Public methodGetConfiguration
Requests the Configuration associated to the type.
Public methodGetRootType
Gets the type of the root.
Public methodGetSessionFactory
Obtains the SessionFactory associated to the type.
Public methodRegister
Associates a Configuration object to a root type
Public methodRegisterSessionFactory
This method allows direct registration of a session factory to a type, bypassing the normal preperation that AR usually does. The main usage is in testing, so you would be able to switch the session factory for each test. Note that this will override the current session factory for the baseType.
Public methodReleaseSession
Releases the specified session

Public Properties

  NameDescription
Public propertyThreadScopeInfo
Gets or sets the implementation of IThreadScopeInfo

Public Events

  NameDescription
Public eventOnRootTypeRegistered
Raised when a new root type is registered. A new root type creates a new ISessionFactory

See Also