Property | Type | Description | |
---|---|---|---|
GetSession | ISession | ||
InitSessionFactory | void | ||
IsInWebContext | bool | ||
NHibernateSessionManager | System.Runtime.Remoting.Messaging |
Method | Description | |
---|---|---|
BeginTransaction ( ) : void | ||
CloseSession ( ) : void | ||
CommitTransaction ( ) : void | ||
EnsureFreshness ( object o ) : void |
Make sure the object given is connected to the current session
|
|
GetSession ( ) : ISession |
Shortcut which just calls into the GetSession overload with the current registered interceptor. If no interceptor has been registered, it will be null
|
|
HasOpenTransaction ( ) : bool | ||
RegisterInterceptor ( IInterceptor interceptor ) : void |
Allows you to set the interceptor which will be used in all subsequent sessions
|
|
RollbackTransaction ( ) : void | ||
SetFlushMode ( FlushMode flushMode ) : void |
Allows you to set the flush mode which will be used with all sessions
|
Method | Description | |
---|---|---|
GetSession ( IInterceptor interceptor ) : ISession |
Gets a session with or without an interceptor. This method is not called directly; instead, it gets invoked from other public methods.
|
|
InitSessionFactory ( ) : void | ||
IsInWebContext ( ) : bool | ||
NHibernateSessionManager ( ) : System.Runtime.Remoting.Messaging |
Initializes the NHibernate session factory upon instantiation.
|
public EnsureFreshness ( object o ) : void | ||
o | object | Mapped Object |
return | void |
public RegisterInterceptor ( IInterceptor interceptor ) : void | ||
interceptor | IInterceptor | |
return | void |
public SetFlushMode ( FlushMode flushMode ) : void | ||
flushMode | FlushMode | |
return | void |