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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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