C# 클래스 Simple.Migrator.DbMigrator

Migrations mediator.
상속: IDisposable
파일 보기 프로젝트 열기: juanplopes/simple

보호된 프로퍼티들

프로퍼티 타입 설명
_dryrun bool

공개 메소드들

메소드 설명
DbMigrator ( MigratorOptions options ) : System
Dispose ( ) : void
Migrate ( long version ) : void
MigrateTo ( long version, string schemainfoname ) : void

Migrate the database to a specific version. Runs all migration between the actual version and the specified version. If version is greater then the current version, the Up() method will be invoked. If version lower then the current version, the Down() method of previous migration will be invoked. If dryrun is set, don't write any changes to the database.

MigrateToLastVersion ( string schemainfoname ) : void

Run all migrations up to the latest. Make no changes to database if dryrun is true.

보호된 메소드들

메소드 설명
DbMigrator ( ITransformationProvider provider, bool trace, ILogger logger ) : System

메소드 상세

DbMigrator() 보호된 메소드

protected DbMigrator ( ITransformationProvider provider, bool trace, ILogger logger ) : System
provider ITransformationProvider
trace bool
logger ILogger
리턴 System

DbMigrator() 공개 메소드

public DbMigrator ( MigratorOptions options ) : System
options MigratorOptions
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Migrate() 공개 메소드

public Migrate ( long version ) : void
version long
리턴 void

MigrateTo() 공개 메소드

Migrate the database to a specific version. Runs all migration between the actual version and the specified version. If version is greater then the current version, the Up() method will be invoked. If version lower then the current version, the Down() method of previous migration will be invoked. If dryrun is set, don't write any changes to the database.
public MigrateTo ( long version, string schemainfoname ) : void
version long The version that must became the current one
schemainfoname string
리턴 void

MigrateToLastVersion() 공개 메소드

Run all migrations up to the latest. Make no changes to database if dryrun is true.
public MigrateToLastVersion ( string schemainfoname ) : void
schemainfoname string
리턴 void

프로퍼티 상세

_dryrun 보호되어 있는 프로퍼티

protected bool _dryrun
리턴 bool