C# Класс Simple.Migrator.DbMigrator

Migrations mediator.
Наследование: IDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_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