C# Class MigSharp.DbAlterer

Base class for database schema altering classes.
Afficher le fichier Open project: dradovic/MigSharp

Private Properties

Свойство Type Description
CreateRuntimeConfiguration RuntimeConfiguration

Méthodes publiques

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

Méthodes protégées

Méthode Description
DbAlterer ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : System

Private Methods

Méthode Description
CreateRuntimeConfiguration ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : RuntimeConfiguration

Method Details

DbAlterer() protected méthode

protected DbAlterer ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : System
connectionString string
dbPlatform DbPlatform
options DbAltererOptions
Résultat System

UseCustomConnection() public méthode

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