C# Класс Castle.ActiveRecord.Framework.Config.InPlaceConfigurationSource

Usefull for test cases.
Наследование: IConfigurationSource
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

Метод Описание
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.

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

Метод Описание
ConvertToConfiguration ( IDictionary properties ) : IConfiguration
ProcessConfiguration ( IConfiguration config ) : void

Processes the configuration applying any substitutions.

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

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

Adds the specified type with configuration
public Add ( Type type, IConfiguration config ) : void
type System.Type The type.
config IConfiguration The config.
Результат void

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

Adds the specified type with the properties
public Add ( Type type, IDictionary properties ) : void
type System.Type The type.
properties IDictionary The properties.
Результат void

Build() публичный статический Метод

Builds an InPlaceConfiguratioSource for the specified database.
public static Build ( DatabaseType database, string connectionString ) : InPlaceConfigurationSource
database DatabaseType The database.
connectionString string The connection string.
Результат InPlaceConfigurationSource

BuildForMSSqlServer() публичный статический Метод

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.
Результат InPlaceConfigurationSource

BuildForMSSqlServer() публичный статический Метод

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.
Результат InPlaceConfigurationSource

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

Return an IConfiguration for the specified type.
public GetConfiguration ( Type type ) : IConfiguration
type Type
Результат IConfiguration

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

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

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

Sets the debug flag.
protected SetDebugFlag ( bool isDebug ) : void
isDebug bool if set to true Active Record will produce debug information.
Результат void

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

Set whatever entities are lazy by default or not.
protected SetIsLazyByDefault ( bool lazyByDefault ) : void
lazyByDefault bool
Результат void

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

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

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

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.
Результат void