Method | Description | |
---|---|---|
FailSession ( ISession session ) : void |
Called if an action on the session fails
|
|
GetAllConfigurations ( ) : NHibernate.Cfg.Configuration[] |
Pendent
|
|
GetConfiguration ( |
Requests the Configuration associated to the type.
|
|
GetRootType ( |
Gets the type of the root.
|
|
GetSessionFactory ( |
Optimized with reader/writer lock.
|
|
Register ( |
Associates a Configuration object to a root type
|
|
RegisterSessionFactory ( ISessionFactory sessionFactory, |
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 ( ISession session ) : void |
Releases the specified session
|
Method | Description | |
---|---|---|
CreateScopeSession ( |
||
CreateSession ( |
||
OpenSession ( ISessionFactory sessionFactory ) : ISession | ||
OpenSessionWithScope ( ISessionScope scope, ISessionFactory sessionFactory ) : ISession |
public FailSession ( ISession session ) : void | ||
session | ISession | |
return | void |
public GetAllConfigurations ( ) : NHibernate.Cfg.Configuration[] | ||
return | NHibernate.Cfg.Configuration[] |
public GetConfiguration ( |
||
type | ||
return | NHibernate.Cfg.Configuration |
public GetRootType ( |
||
type | The type. | |
return |
public GetSessionFactory ( |
||
type | ||
return | ISessionFactory |
public Register ( |
||
rootType | ||
cfg | NHibernate.Cfg.Configuration | |
return | void |
public RegisterSessionFactory ( ISessionFactory sessionFactory, |
||
sessionFactory | ISessionFactory | |
baseType | ||
return | void |
public ReleaseSession ( ISession session ) : void | ||
session | ISession | |
return | void |