C# Class MigSharp.DbAlterer

Base class for database schema altering classes.
Mostra file Open project: dradovic/MigSharp

Private Properties

Property Type Description
CreateRuntimeConfiguration RuntimeConfiguration

Public Methods

Method Description
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).

Protected Methods

Method Description
DbAlterer ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : System

Private Methods

Method Description
CreateRuntimeConfiguration ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : RuntimeConfiguration

Method Details

DbAlterer() protected method

protected DbAlterer ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : System
connectionString string
dbPlatform DbPlatform
options DbAltererOptions
return System

UseCustomConnection() public method

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.
return void