C# Class 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.
Afficher le fichier Open project: nhibernate/nhibernate-core Class Usage Examples

Méthodes publiques

Méthode Description
BuildBytecodeProvider ( string>.IDictionary properties ) : IBytecodeProvider
VerifyProperties ( string>.IDictionary props ) : void

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

Private Methods

Méthode Description
LoadGlobalPropertiesFromAppConfig ( ) : void
ResetSessionFactoryProperties ( ) : void

Method Details

BuildBytecodeProvider() public static méthode

public static BuildBytecodeProvider ( string>.IDictionary properties ) : IBytecodeProvider
properties string>.IDictionary
Résultat IBytecodeProvider

VerifyProperties() public static méthode

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