C# Класс MigSharp.DbAlterer

Base class for database schema altering classes.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CreateRuntimeConfiguration RuntimeConfiguration

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

Метод Описание
UseCustomConnection ( IDbConnection connection ) : void

Injects an existing connection which is used for all database accesses without opening or closing it. In this case, the provided ConnectionString will be ignored.

The caller is responsible for opening the connection before executing the migrations and disposing the connection afterwards.

Use this method only if you really have to.

SQLite in-memory databases require the connection to be open all the time (see https://github.com/dradovic/MigSharp/pull/38).

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

Метод Описание
DbAlterer ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : System

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

Метод Описание
CreateRuntimeConfiguration ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : RuntimeConfiguration

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

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

protected DbAlterer ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : System
connectionString string
dbPlatform DbPlatform
options DbAltererOptions
Результат System

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

Injects an existing connection which is used for all database accesses without opening or closing it. In this case, the provided ConnectionString will be ignored.

The caller is responsible for opening the connection before executing the migrations and disposing the connection afterwards.

Use this method only if you really have to.

SQLite in-memory databases require the connection to be open all the time (see https://github.com/dradovic/MigSharp/pull/38).
public UseCustomConnection ( IDbConnection connection ) : void
connection IDbConnection The connection to be used.
Результат void