C# Class Castle.ActiveRecord.Framework.Config.InPlaceConfigurationSource

Usefull for test cases.
Inheritance: IConfigurationSource
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode Description
Add ( Type type, IConfiguration config ) : void

Adds the specified type with configuration

Add ( Type type, IDictionary properties ) : void

Adds the specified type with the properties

Build ( DatabaseType database, string connectionString ) : InPlaceConfigurationSource

Builds an InPlaceConfiguratioSource for the specified database.

BuildForMSSqlServer ( string server, string initialCatalog ) : InPlaceConfigurationSource

Builds a InPlaceConfigurationSource set up to access a MS SQL server database using integrated security.

BuildForMSSqlServer ( string server, string initialCatalog, string username, string password ) : InPlaceConfigurationSource

Builds a InPlaceConfigurationSource set up to access a MS SQL server database using the specified username and password.

GetConfiguration ( Type type ) : IConfiguration

Return an IConfiguration for the specified type.

InPlaceConfigurationSource ( ) : System

Initializes a new instance of the InPlaceConfigurationSource class.

Méthodes protégées

Méthode Description
SetDebugFlag ( bool isDebug ) : void

Sets the debug flag.

SetIsLazyByDefault ( bool lazyByDefault ) : void

Set whatever entities are lazy by default or not.

SetPluralizeTableNames ( bool pluralize ) : void

Sets the pluralizeTableNames flag.

SetUpNamingStrategyType ( String customType ) : void

Sets the type of the naming strategy.

SetUpSessionFactoryHolderType ( String customType ) : void

Sets the type of the session factory holder.

SetUpThreadInfoType ( bool isWeb, String customType ) : void

Sets the type of the thread info.

SetVerifyModelsAgainstDBSchema ( bool verifyModelsAgainstDBSchema ) : void

Sets the debug flag.

Private Methods

Méthode Description
ConvertToConfiguration ( IDictionary properties ) : IConfiguration
ProcessConfiguration ( IConfiguration config ) : void

Processes the configuration applying any substitutions.

Method Details

Add() public méthode

Adds the specified type with configuration
public Add ( Type type, IConfiguration config ) : void
type System.Type The type.
config IConfiguration The config.
Résultat void

Add() public méthode

Adds the specified type with the properties
public Add ( Type type, IDictionary properties ) : void
type System.Type The type.
properties IDictionary The properties.
Résultat void

Build() public static méthode

Builds an InPlaceConfiguratioSource for the specified database.
public static Build ( DatabaseType database, string connectionString ) : InPlaceConfigurationSource
database DatabaseType The database.
connectionString string The connection string.
Résultat InPlaceConfigurationSource

BuildForMSSqlServer() public static méthode

Builds a InPlaceConfigurationSource set up to access a MS SQL server database using integrated security.
public static BuildForMSSqlServer ( string server, string initialCatalog ) : InPlaceConfigurationSource
server string The server.
initialCatalog string The initial catalog.
Résultat InPlaceConfigurationSource

BuildForMSSqlServer() public static méthode

Builds a InPlaceConfigurationSource set up to access a MS SQL server database using the specified username and password.
public static BuildForMSSqlServer ( string server, string initialCatalog, string username, string password ) : InPlaceConfigurationSource
server string The server.
initialCatalog string The initial catalog.
username string The username.
password string The password.
Résultat InPlaceConfigurationSource

GetConfiguration() public méthode

Return an IConfiguration for the specified type.
public GetConfiguration ( Type type ) : IConfiguration
type Type
Résultat IConfiguration

InPlaceConfigurationSource() public méthode

Initializes a new instance of the InPlaceConfigurationSource class.
public InPlaceConfigurationSource ( ) : System
Résultat System

SetDebugFlag() protected méthode

Sets the debug flag.
protected SetDebugFlag ( bool isDebug ) : void
isDebug bool if set to true Active Record will produce debug information.
Résultat void

SetIsLazyByDefault() protected méthode

Set whatever entities are lazy by default or not.
protected SetIsLazyByDefault ( bool lazyByDefault ) : void
lazyByDefault bool
Résultat void

SetPluralizeTableNames() protected méthode

Sets the pluralizeTableNames flag.
protected SetPluralizeTableNames ( bool pluralize ) : void
pluralize bool if set to true Active Record will pluralize inferred table names.
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 ( bool isWeb, String customType ) : void
isWeb bool if we run in a web context or not
customType String Type of the custom implementation
Résultat void

SetVerifyModelsAgainstDBSchema() protected méthode

Sets the debug flag.
protected SetVerifyModelsAgainstDBSchema ( bool verifyModelsAgainstDBSchema ) : void
verifyModelsAgainstDBSchema bool if set to true Active Record will verify the models against the db schema on startup.
Résultat void