C# Class NHibernate.Cfg.XFactoriesExtensions

ファイルを表示 Open project: roydukkey/NHibernate-X-Factories

Public Methods

Method Description
Configure ( this config, XmlReader textReader, string factoryName ) : NHibernate.Cfg.Configuration

Configure NHibernate from a specified session-factory.

Configure ( this config, string fileName, string factoryName ) : NHibernate.Cfg.Configuration

Configure NHibernate from a specified session-factory.

Private Methods

Method Description
PrepareConfiguration ( XmlDocument doc, string factoryName ) : XmlTextReader

Parses the configuration xml and ensures the target session-factory is the only one included.

Method Details

Configure() public static method

Configure NHibernate from a specified session-factory.
public static Configure ( this config, XmlReader textReader, string factoryName ) : NHibernate.Cfg.Configuration
config this
textReader XmlReader The XmlReader containing the hibernate-configuration.
factoryName string Name value of the desired session-factory.
return NHibernate.Cfg.Configuration

Configure() public static method

Configure NHibernate from a specified session-factory.
public static Configure ( this config, string fileName, string factoryName ) : NHibernate.Cfg.Configuration
config this
fileName string System location of '.cfg.xml' configuration file.
factoryName string Name value of the desired session-factory.
return NHibernate.Cfg.Configuration