C# Class Castle.ActiveRecord.Config.XmlActiveRecordConfiguration

Source of configuration based on Xml source like files, streams or readers.
Inheritance: DefaultActiveRecordConfiguration
ファイルを表示 Open project: shosca/ActiveRecord Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Private Methods

Method Description
ConvertBool ( XmlNode boolAttrib ) : bool
PopulateConfigNodes ( XmlNode section ) : void

Method Details

BuildProperties() protected method

Builds the configuration properties.
protected BuildProperties ( SessionFactoryConfig config, XmlNode node ) : void
config SessionFactoryConfig
node System.Xml.XmlNode
return void

GetFlushType() protected method

protected GetFlushType ( string configurationValue ) : DefaultFlushType
configurationValue string
return DefaultFlushType

PopulateSource() protected method

Populate this instance with values from the given XML node
protected PopulateSource ( XmlNode section ) : void
section System.Xml.XmlNode
return void

SetDefaults() protected method

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
return void

SetUpNamingStrategyType() protected method

Sets the type of the naming strategy.
protected SetUpNamingStrategyType ( String customType ) : void
customType String Custom implementation type name.
return void

SetUpSessionFactoryHolderType() protected method

Sets the type of the session factory holder.
protected SetUpSessionFactoryHolderType ( String customType ) : void
customType String Custom implementation
return void

SetUpThreadInfoType() protected method

Sets the type of the thread info.
protected SetUpThreadInfoType ( string customType ) : void
customType string The type of the custom implementation.
return void

XmlActiveRecordConfiguration() protected method

Initializes a new instance of the XmlActiveRecordConfiguration class.
protected XmlActiveRecordConfiguration ( ) : System
return System

XmlActiveRecordConfiguration() public method

Initializes a new instance of the XmlActiveRecordConfiguration class.
public XmlActiveRecordConfiguration ( Stream stream ) : System
stream Stream The stream.
return System

XmlActiveRecordConfiguration() public method

Initializes a new instance of the XmlActiveRecordConfiguration class.
public XmlActiveRecordConfiguration ( String xmlFileName ) : System
xmlFileName String Name of the XML file.
return System

XmlActiveRecordConfiguration() public method

Initializes a new instance of the XmlActiveRecordConfiguration class.
public XmlActiveRecordConfiguration ( TextReader reader ) : System
reader TextReader The reader.
return System