Property | Type | Description | |
---|---|---|---|
AutoMappings | ISessionFactory | ||
BeginTransaction | void | ||
GetSession | ISession | ||
IsInWebContext | bool | ||
NHibernateSessionManager | System |
Method | Description | |
---|---|---|
BeginTransaction ( ) : void |
Begins the transaction.
|
|
CloseSession ( ) : void |
Closes the session.
|
|
CloseSessionFactory ( ) : void |
Closes the session and the disposes the session factory
|
|
CommitTransaction ( ) : void |
Commits the transaction / Unit of Work if autocommit is set to true, canceltransaction to false and if the transaction is not committed or rolled back yet
|
|
ExportDatabaseSchema ( ) : void |
Exports the database schema.
|
|
GetSession ( ) : ISession |
Gets the session.
|
|
ImportDatabaseSchema ( ) : void |
Imports the database schema.
|
|
InitSessionFactory ( ) : void | ||
InitSessionFactory ( string xmlConfigFile ) : void |
Inits the session factory.
|
|
OpenNewSession ( ) : ISession | ||
RegisterInterceptor ( IInterceptor interceptor ) : void |
Allows you to register an interceptor on a new session. This may not be called if there is already an open session attached to the HttpContext. If you have an interceptor to be used, modify the HttpModule to call this before calling BeginTransaction().
|
|
RollbackTransaction ( ) : void |
Rollbacks the transaction.
|
Method | Description | |
---|---|---|
AutoMappings ( ) : ISessionFactory | ||
BeginTransaction ( ISession session ) : void | ||
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.
|
|
IsInWebContext ( ) : bool | ||
NHibernateSessionManager ( ) : System |
Initializes the NHibernate session factory upon instantiation.
|
public InitSessionFactory ( string xmlConfigFile ) : void | ||
xmlConfigFile | string | |
return | void |
public RegisterInterceptor ( IInterceptor interceptor ) : void | ||
interceptor | IInterceptor | |
return | void |