C# 클래스 Shaml.Data.NHibernate.NHibernateSession

파일 보기 프로젝트 열기: sztupy/shaml

공개 프로퍼티들

프로퍼티 타입 설명
DefaultFactoryKey string

공개 메소드들

메소드 설명
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 cfgProperties ) : Configuration
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.

비공개 메소드들

메소드 설명
AddConfiguration ( string factoryKey, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile, string>.IDictionary cfgProperties, string validatorCfgFile, IPersistenceConfigurer persistenceConfigurer ) : NHibernate.Cfg.Configuration
ConfigureNHibernate ( string cfgFile, string>.IDictionary cfgProperties ) : NHibernate.Cfg.Configuration
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 cfgProperties ) : Configuration
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile ) : Configuration
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile, string>.IDictionary cfgProperties, string validatorCfgFile ) : Configuration
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile, string>.IDictionary cfgProperties, string validatorCfgFile, IPersistenceConfigurer persistenceConfigurer ) : Configuration
Init ( ISessionStorage storage, string mappingAssemblies, AutoPersistenceModel autoPersistenceModel, string cfgFile, string validatorCfgFile ) : Configuration
MakeLoadReadyAssemblyName ( string assemblyName ) : string

메소드 상세

CloseAllSessions() 공개 정적인 메소드

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.
public static CloseAllSessions ( ) : void
리턴 void

CurrentFor() 공개 정적인 메소드

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.
public static CurrentFor ( string factoryKey ) : ISession
factoryKey string
리턴 ISession

GetDefaultSessionFactory() 공개 정적인 메소드

Returns the default ISessionFactory using the DefaultFactoryKey.
public static GetDefaultSessionFactory ( ) : ISessionFactory
리턴 ISessionFactory

GetSessionFactoryFor() 공개 정적인 메소드

Return an ISessionFactory based on the specified factoryKey.
public static GetSessionFactoryFor ( string factoryKey ) : ISessionFactory
factoryKey string
리턴 ISessionFactory

Init() 공개 정적인 메소드

public static Init ( ISessionStorage storage, string mappingAssemblies ) : NHibernate.Cfg.Configuration
storage ISessionStorage
mappingAssemblies string
리턴 NHibernate.Cfg.Configuration

Init() 공개 정적인 메소드

public static Init ( ISessionStorage storage, string mappingAssemblies, string>.IDictionary cfgProperties ) : Configuration
storage ISessionStorage
mappingAssemblies string
cfgProperties string>.IDictionary
리턴 Configuration

Init() 공개 정적인 메소드

public static Init ( ISessionStorage storage, string mappingAssemblies, string cfgFile ) : Configuration
storage ISessionStorage
mappingAssemblies string
cfgFile string
리턴 Configuration

Init() 공개 정적인 메소드

public static Init ( ISessionStorage storage, string mappingAssemblies, string cfgFile, string validatorCfgFile ) : Configuration
storage ISessionStorage
mappingAssemblies string
cfgFile string
validatorCfgFile string
리턴 Configuration

InitStorage() 공개 정적인 메소드

public static InitStorage ( ISessionStorage storage ) : void
storage ISessionStorage
리턴 void

IsConfiguredForMultipleDatabases() 공개 정적인 메소드

public static IsConfiguredForMultipleDatabases ( ) : bool
리턴 bool

RegisterInterceptor() 공개 정적인 메소드

public static RegisterInterceptor ( IInterceptor interceptor ) : void
interceptor IInterceptor
리턴 void

RemoveSessionFactoryFor() 공개 정적인 메소드

public static RemoveSessionFactoryFor ( string factoryKey ) : void
factoryKey string
리턴 void

Reset() 공개 정적인 메소드

To facilitate unit testing, this method will reset this object back to its original state before it was configured.
public static Reset ( ) : void
리턴 void

프로퍼티 상세

DefaultFactoryKey 공개적으로 정적으로 프로퍼티

The default factory key used if only one database is being communicated with.
public static string DefaultFactoryKey
리턴 string