Syntax
| C# |
|---|
public interface ISessionFactoryHolder |
The type exposes the following members.
Public Methods
| Name | Description | |
|---|---|---|
| CreateSession |
Creates a session for the associated type
| |
| FailSession |
Called if an action on the session fails
| |
| GetAllConfigurations |
Pendent
| |
| GetConfiguration |
Requests the Configuration associated to the type.
| |
| GetRootType |
Gets the type of the root.
| |
| GetSessionFactory |
Obtains the SessionFactory associated to the type.
| |
| Register |
Associates a Configuration object to a root type
| |
| RegisterSessionFactory |
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.
| |
| ReleaseSession |
Releases the specified session
|
Public Properties
| Name | Description | |
|---|---|---|
| ThreadScopeInfo |
Gets or sets the implementation of IThreadScopeInfo |
Public Events
| Name | Description | |
|---|---|---|
| OnRootTypeRegistered |
Raised when a new root type is registered.
A new root type creates a new ISessionFactory |