C# Класс Castle.ActiveRecord.Config.XmlActiveRecordConfiguration

Source of configuration based on Xml source like files, streams or readers.
Наследование: DefaultActiveRecordConfiguration
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
XmlActiveRecordConfiguration ( Stream stream ) : System

Initializes a new instance of the XmlActiveRecordConfiguration class.

XmlActiveRecordConfiguration ( String xmlFileName ) : System

Initializes a new instance of the XmlActiveRecordConfiguration class.

XmlActiveRecordConfiguration ( TextReader reader ) : System

Initializes a new instance of the XmlActiveRecordConfiguration class.

Защищенные методы

Метод Описание
BuildProperties ( SessionFactoryConfig config, XmlNode node ) : void

Builds the configuration properties.

GetFlushType ( string configurationValue ) : DefaultFlushType
PopulateSource ( XmlNode section ) : void

Populate this instance with values from the given XML node

SetDefaults ( SessionFactoryConfig config, string name, string connectionStringName ) : void

Sets the default configuration for database specifiend by name.

SetUpNamingStrategyType ( String customType ) : void

Sets the type of the naming strategy.

SetUpSessionFactoryHolderType ( String customType ) : void

Sets the type of the session factory holder.

SetUpThreadInfoType ( string customType ) : void

Sets the type of the thread info.

XmlActiveRecordConfiguration ( ) : System

Initializes a new instance of the XmlActiveRecordConfiguration class.

Приватные методы

Метод Описание
ConvertBool ( XmlNode boolAttrib ) : bool
PopulateConfigNodes ( XmlNode section ) : void

Описание методов

BuildProperties() защищенный Метод

Builds the configuration properties.
protected BuildProperties ( SessionFactoryConfig config, XmlNode node ) : void
config SessionFactoryConfig
node System.Xml.XmlNode
Результат void

GetFlushType() защищенный Метод

protected GetFlushType ( string configurationValue ) : DefaultFlushType
configurationValue string
Результат DefaultFlushType

PopulateSource() защищенный Метод

Populate this instance with values from the given XML node
protected PopulateSource ( XmlNode section ) : void
section System.Xml.XmlNode
Результат void

SetDefaults() защищенный Метод

Sets the default configuration for database specifiend by name.
protected SetDefaults ( SessionFactoryConfig config, string name, string connectionStringName ) : void
config SessionFactoryConfig
name string Name of the database type.
connectionStringName string name of the connection string specified in connectionStrings configuration section
Результат void

SetUpNamingStrategyType() защищенный Метод

Sets the type of the naming strategy.
protected SetUpNamingStrategyType ( String customType ) : void
customType String Custom implementation type name.
Результат void

SetUpSessionFactoryHolderType() защищенный Метод

Sets the type of the session factory holder.
protected SetUpSessionFactoryHolderType ( String customType ) : void
customType String Custom implementation
Результат void

SetUpThreadInfoType() защищенный Метод

Sets the type of the thread info.
protected SetUpThreadInfoType ( string customType ) : void
customType string The type of the custom implementation.
Результат void

XmlActiveRecordConfiguration() защищенный Метод

Initializes a new instance of the XmlActiveRecordConfiguration class.
protected XmlActiveRecordConfiguration ( ) : System
Результат System

XmlActiveRecordConfiguration() публичный Метод

Initializes a new instance of the XmlActiveRecordConfiguration class.
public XmlActiveRecordConfiguration ( Stream stream ) : System
stream Stream The stream.
Результат System

XmlActiveRecordConfiguration() публичный Метод

Initializes a new instance of the XmlActiveRecordConfiguration class.
public XmlActiveRecordConfiguration ( String xmlFileName ) : System
xmlFileName String Name of the XML file.
Результат System

XmlActiveRecordConfiguration() публичный Метод

Initializes a new instance of the XmlActiveRecordConfiguration class.
public XmlActiveRecordConfiguration ( TextReader reader ) : System
reader TextReader The reader.
Результат System