C# Class Simple.Migrator.DbMigrator

Migrations mediator.
Inheritance: IDisposable
Afficher le fichier Open project: juanplopes/simple

Protected Properties

Свойство Type Description
_dryrun bool

Méthodes publiques

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

Méthodes protégées

Méthode Description
DbMigrator ( ITransformationProvider provider, bool trace, ILogger logger ) : System

Method Details

DbMigrator() protected méthode

protected DbMigrator ( ITransformationProvider provider, bool trace, ILogger logger ) : System
provider ITransformationProvider
trace bool
logger ILogger
Résultat System

DbMigrator() public méthode

public DbMigrator ( MigratorOptions options ) : System
options MigratorOptions
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Migrate() public méthode

public Migrate ( long version ) : void
version long
Résultat void

MigrateTo() public méthode

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

MigrateToLastVersion() public méthode

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

Property Details

_dryrun protected_oe property

protected bool _dryrun
Résultat bool