C# Class MicroLite.Configuration.ConfigurationExtensions

Extension methods for IConfigureExtensions.
Afficher le fichier Open project: TrevorPilley/MicroLite

Méthodes publiques

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

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

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.
Résultat ICreateSessionFactory

ForFirebirdConnection() public static méthode

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.
Résultat ICreateSessionFactory

ForMySqlConnection() public static méthode

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.
Résultat ICreateSessionFactory

ForMySqlConnection() public static méthode

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.
Résultat ICreateSessionFactory

ForPostgreSqlConnection() public static méthode

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.
Résultat ICreateSessionFactory

ForPostgreSqlConnection() public static méthode

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.
Résultat ICreateSessionFactory

ForSQLiteConnection() public static méthode

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.
Résultat ICreateSessionFactory

ForSQLiteConnection() public static méthode

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.
Résultat ICreateSessionFactory

WithAttributeBasedMapping() public static méthode

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.
Résultat IConfigureExtensions

WithConventionBasedMapping() public static méthode

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.
Résultat IConfigureExtensions