C# 클래스 MigSharp.DbAlterer

Base class for database schema altering classes.
파일 보기 프로젝트 열기: dradovic/MigSharp

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