C# Класс MicroLite.Configuration.ConfigurationExtensions

Extension methods for IConfigureExtensions.
Показать файл Открыть проект

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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