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

Usefull for test cases.
Inheritance: IConfigurationSource
Mostrar archivo Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

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

Protected Methods

Method 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

Method Description
ConvertToConfiguration ( IDictionary properties ) : IConfiguration
ProcessConfiguration ( IConfiguration config ) : void

Processes the configuration applying any substitutions.

Method Details

Add() public method

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

Add() public method

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

Build() public static method

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

BuildForMSSqlServer() public static method

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.
return InPlaceConfigurationSource

BuildForMSSqlServer() public static method

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.
return InPlaceConfigurationSource

GetConfiguration() public method

Return an IConfiguration for the specified type.
public GetConfiguration ( Type type ) : IConfiguration
type Type
return IConfiguration

InPlaceConfigurationSource() public method

Initializes a new instance of the InPlaceConfigurationSource class.
public InPlaceConfigurationSource ( ) : System
return System

SetDebugFlag() protected method

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

SetIsLazyByDefault() protected method

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

SetPluralizeTableNames() protected method

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

SetVerifyModelsAgainstDBSchema() protected method

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