C# 클래스 NHibernate.Cfg.Environment

Provides access to configuration information.
NHibernate has two property scopes: Factory-level properties may be passed to the ISessionFactory when it is instantiated. Each instance might have different property values. If no properties are specified, the factory gets them from Environment System-level properties are shared by all factory instances and are always determined by the Cfg.Environment properties In NHibernate, <hibernate-configuration> section in the application configuration file corresponds to Java system-level properties; <session-factory> section is the session-factory-level configuration. It is possible to use the application configuration file (App.config) together with the NHibernate configuration file (hibernate.cfg.xml) at the same time. Properties in hibernate.cfg.xml override/merge properties in application configuration file where same property is found. For others configuration a merge is applied.
파일 보기 프로젝트 열기: nhibernate/nhibernate-core 1 사용 예제들

공개 메소드들

메소드 설명
BuildBytecodeProvider ( string>.IDictionary properties ) : IBytecodeProvider
VerifyProperties ( string>.IDictionary props ) : void

Issue warnings to user when any obsolete property names are used.

비공개 메소드들

메소드 설명
LoadGlobalPropertiesFromAppConfig ( ) : void
ResetSessionFactoryProperties ( ) : void

메소드 상세

BuildBytecodeProvider() 공개 정적인 메소드

public static BuildBytecodeProvider ( string>.IDictionary properties ) : IBytecodeProvider
properties string>.IDictionary
리턴 IBytecodeProvider

VerifyProperties() 공개 정적인 메소드

Issue warnings to user when any obsolete property names are used.
public static VerifyProperties ( string>.IDictionary props ) : void
props string>.IDictionary
리턴 void