C# 클래스 Pilgrim.DbMigrator

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

보호된 프로퍼티들

프로퍼티 타입 설명
_dryrun bool

공개 메소드들

메소드 설명
DbMigrator ( MigratorOptions options ) : System
Dispose ( ) : void
Migrate ( long version ) : void
MigrateToLast ( ) : 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() 공개 메소드

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

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Migrate() 공개 메소드

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

MigrateToLast() 공개 메소드

public MigrateToLast ( ) : void
리턴 void

프로퍼티 상세

_dryrun 보호되어 있는 프로퍼티

protected bool _dryrun
리턴 bool