C# Class Castle.ActiveRecord.Config.XmlActiveRecordConfiguration

Source of configuration based on Xml source like files, streams or readers.
Inheritance: DefaultActiveRecordConfiguration
Afficher le fichier Open project: shosca/ActiveRecord Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
ConvertBool ( XmlNode boolAttrib ) : bool
PopulateConfigNodes ( XmlNode section ) : void

Method Details

BuildProperties() protected méthode

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

GetFlushType() protected méthode

protected GetFlushType ( string configurationValue ) : DefaultFlushType
configurationValue string
Résultat DefaultFlushType

PopulateSource() protected méthode

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

SetDefaults() protected méthode

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
Résultat void

SetUpNamingStrategyType() protected méthode

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

SetUpSessionFactoryHolderType() protected méthode

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

SetUpThreadInfoType() protected méthode

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

XmlActiveRecordConfiguration() protected méthode

Initializes a new instance of the XmlActiveRecordConfiguration class.
protected XmlActiveRecordConfiguration ( ) : System
Résultat System

XmlActiveRecordConfiguration() public méthode

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

XmlActiveRecordConfiguration() public méthode

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

XmlActiveRecordConfiguration() public méthode

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