C# Class MicroLite.Configuration.ConfigurationExtensions

Extension methods for IConfigureExtensions.
Datei anzeigen Open project: TrevorPilley/MicroLite

Public Methods

Method Description
ForFirebirdConnection ( this configureConnection, string connectionName ) : ICreateSessionFactory

Configures a Firebird connection using the connection string with the specified name in the connection strings section of the app/web config.

ForFirebirdConnection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory

Configures a Firebird connection using the specified connection name, connection string string and provider name.

ForMySqlConnection ( this configureConnection, string connectionName ) : ICreateSessionFactory

Configures a MySql connection using the connection string with the specified name in the connection strings section of the app/web config.

ForMySqlConnection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory

Configures a MySql connection using the specified connection name, connection string string and provider name.

ForPostgreSqlConnection ( this configureConnection, string connectionName ) : ICreateSessionFactory

Configures a PostgreSql connection using the connection string with the specified name in the connection strings section of the app/web config.

ForPostgreSqlConnection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory

Configures a PostgreSql connection using the specified connection name, connection string string and provider name.

ForSQLiteConnection ( this configureConnection, string connectionName ) : ICreateSessionFactory

Configures an SQLite connection using the connection string with the specified name in the connection strings section of the app/web config.

ForSQLiteConnection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory

Configures an SQLite connection using the specified connection name, connection string string and provider name.

WithAttributeBasedMapping ( this configureExtensions ) : IConfigureExtensions

Configures the MicroLite ORM Framework to use attribute based mapping instead of the default convention based mapping.

WithConventionBasedMapping ( this configureExtensions, ConventionMappingSettings settings ) : IConfigureExtensions

Configures the MicroLite ORM Framework to use custom convention settings for the default convention based mapping.

Private Methods

Method Description
ForMsSql2005Connection ( this configureConnection, string connectionName ) : ICreateSessionFactory
ForMsSql2005Connection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory
ForMsSql2012Connection ( this configureConnection, string connectionName ) : ICreateSessionFactory
ForMsSql2012Connection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory
ForSqlServerCeConnection ( this configureConnection, string connectionName ) : ICreateSessionFactory
ForSqlServerCeConnection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory

Method Details

ForFirebirdConnection() public static method

Configures a Firebird connection using the connection string with the specified name in the connection strings section of the app/web config.
Thrown if any argument is null. Thrown if the connection is not found in the app config.
public static ForFirebirdConnection ( this configureConnection, string connectionName ) : ICreateSessionFactory
configureConnection this The interface to configure a connection.
connectionName string The name of the connection string in the app/web config.
return ICreateSessionFactory

ForFirebirdConnection() public static method

Configures a Firebird connection using the specified connection name, connection string string and provider name.
Thrown if any argument is null.
public static ForFirebirdConnection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory
configureConnection this The interface to configure a connection.
connectionName string The name for the connection.
connectionString string The connection string.
providerName string The name of the provider.
return ICreateSessionFactory

ForMySqlConnection() public static method

Configures a MySql connection using the connection string with the specified name in the connection strings section of the app/web config.
Thrown if any argument is null. Thrown if the connection is not found in the app config.
public static ForMySqlConnection ( this configureConnection, string connectionName ) : ICreateSessionFactory
configureConnection this The interface to configure a connection.
connectionName string The name of the connection string in the app/web config.
return ICreateSessionFactory

ForMySqlConnection() public static method

Configures a MySql connection using the specified connection name, connection string string and provider name.
Thrown if any argument is null.
public static ForMySqlConnection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory
configureConnection this The interface to configure a connection.
connectionName string The name for the connection.
connectionString string The connection string.
providerName string The name of the provider.
return ICreateSessionFactory

ForPostgreSqlConnection() public static method

Configures a PostgreSql connection using the connection string with the specified name in the connection strings section of the app/web config.
Thrown if any argument is null. Thrown if the connection is not found in the app config.
public static ForPostgreSqlConnection ( this configureConnection, string connectionName ) : ICreateSessionFactory
configureConnection this The interface to configure a connection.
connectionName string The name of the connection string in the app/web config.
return ICreateSessionFactory

ForPostgreSqlConnection() public static method

Configures a PostgreSql connection using the specified connection name, connection string string and provider name.
Thrown if any argument is null.
public static ForPostgreSqlConnection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory
configureConnection this The interface to configure a connection.
connectionName string The name for the connection.
connectionString string The connection string.
providerName string The name of the provider.
return ICreateSessionFactory

ForSQLiteConnection() public static method

Configures an SQLite connection using the connection string with the specified name in the connection strings section of the app/web config.
Thrown if any argument is null. Thrown if the connection is not found in the app config.
public static ForSQLiteConnection ( this configureConnection, string connectionName ) : ICreateSessionFactory
configureConnection this The interface to configure a connection.
connectionName string The name of the connection string in the app/web config.
return ICreateSessionFactory

ForSQLiteConnection() public static method

Configures an SQLite connection using the specified connection name, connection string string and provider name.
Thrown if any argument is null.
public static ForSQLiteConnection ( this configureConnection, string connectionName, string connectionString, string providerName ) : ICreateSessionFactory
configureConnection this The interface to configure a connection.
connectionName string The name for the connection.
connectionString string The connection string.
providerName string The name of the provider.
return ICreateSessionFactory

WithAttributeBasedMapping() public static method

Configures the MicroLite ORM Framework to use attribute based mapping instead of the default convention based mapping.
Thrown if any argument is null.
public static WithAttributeBasedMapping ( this configureExtensions ) : IConfigureExtensions
configureExtensions this The interface to configure extensions.
return IConfigureExtensions

WithConventionBasedMapping() public static method

Configures the MicroLite ORM Framework to use custom convention settings for the default convention based mapping.
Thrown if any argument is null.
public static WithConventionBasedMapping ( this configureExtensions, ConventionMappingSettings settings ) : IConfigureExtensions
configureExtensions this The interface to configure extensions.
settings MicroLite.Mapping.ConventionMappingSettings The settings for the convention mapping.
return IConfigureExtensions