Property | Type | Description | |
---|---|---|---|
DefaultFactoryKey | string |
Method | Description | |
---|---|---|
CloseAllSessions ( ) : void |
This method is used by application-specific session storage implementations and unit tests. Its job is to walk thru existing cached sessions and Close() each one.
|
|
CurrentFor ( string factoryKey ) : ISession |
Used to get the current NHibernate session associated with a factory key; i.e., the key associated with an NHibernate session factory for a specific database. If you're only communicating with one database, you should call Current instead, although you're certainly welcome to call this if you have the factory key available.
|
|
GetDefaultSessionFactory ( ) : ISessionFactory |
Returns the default ISessionFactory using the DefaultFactoryKey.
|
|
GetSessionFactoryFor ( string factoryKey ) : ISessionFactory |
Return an ISessionFactory based on the specified factoryKey.
|
|
Init ( ISessionStorage storage, string mappingAssemblies ) : NHibernate.Cfg.Configuration | ||
Init ( ISessionStorage storage, string mappingAssemblies, string>.IDictionary |
||
Init ( ISessionStorage storage, string mappingAssemblies, string cfgFile ) : Configuration | ||
Init ( ISessionStorage storage, string mappingAssemblies, string cfgFile, string validatorCfgFile ) : Configuration | ||
InitStorage ( ISessionStorage storage ) : void | ||
IsConfiguredForMultipleDatabases ( ) : bool | ||
RegisterInterceptor ( IInterceptor interceptor ) : void | ||
RemoveSessionFactoryFor ( string factoryKey ) : void | ||
Reset ( ) : void |
To facilitate unit testing, this method will reset this object back to its original state before it was configured.
|
Method | Description | |
---|---|---|
AddConfiguration ( string factoryKey, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile, string>.IDictionary |
||
ConfigureNHibernate ( string cfgFile, string>.IDictionary |
||
ConfigureNHibernateValidator ( NHibernate.Cfg.Configuration cfg, string validatorCfgFile ) : void | ||
CreateSessionFactoryFor ( string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, NHibernate.Cfg.Configuration cfg, IPersistenceConfigurer persistenceConfigurer ) : ISessionFactory | ||
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel ) : Configuration | ||
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string>.IDictionary |
||
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile ) : Configuration | ||
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile, string>.IDictionary |
||
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile, string>.IDictionary |
||
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile, string validatorCfgFile ) : Configuration | ||
MakeLoadReadyAssemblyName ( string assemblyName ) : string |
public static CurrentFor ( string factoryKey ) : ISession | ||
factoryKey | string | |
return | ISession |
public static GetDefaultSessionFactory ( ) : ISessionFactory | ||
return | ISessionFactory |
public static GetSessionFactoryFor ( string factoryKey ) : ISessionFactory | ||
factoryKey | string | |
return | ISessionFactory |
public static Init ( ISessionStorage storage, string mappingAssemblies ) : NHibernate.Cfg.Configuration | ||
storage | ISessionStorage | |
mappingAssemblies | string | |
return | NHibernate.Cfg.Configuration |
public static Init ( ISessionStorage storage, string mappingAssemblies, string>.IDictionary |
||
storage | ISessionStorage | |
mappingAssemblies | string | |
cfgProperties | string>.IDictionary | |
return | Configuration |
public static Init ( ISessionStorage storage, string mappingAssemblies, string cfgFile ) : Configuration | ||
storage | ISessionStorage | |
mappingAssemblies | string | |
cfgFile | string | |
return | Configuration |
public static Init ( ISessionStorage storage, string mappingAssemblies, string cfgFile, string validatorCfgFile ) : Configuration | ||
storage | ISessionStorage | |
mappingAssemblies | string | |
cfgFile | string | |
validatorCfgFile | string | |
return | Configuration |
public static InitStorage ( ISessionStorage storage ) : void | ||
storage | ISessionStorage | |
return | void |
public static IsConfiguredForMultipleDatabases ( ) : bool | ||
return | bool |
public static RegisterInterceptor ( IInterceptor interceptor ) : void | ||
interceptor | IInterceptor | |
return | void |
public static RemoveSessionFactoryFor ( string factoryKey ) : void | ||
factoryKey | string | |
return | void |