The Migrator type exposes the following members.

Methods

  NameDescription
CreateMigrator
Creates a Migrator to run or preview migrations from the specified source.
CurrentVersion
Get the current database version number. If no version information exists, it will be created and set to the default starting version number.
Execute
Executes the migrations loaded into the Migrator.
MigrateOverloaded.
OnIrreversibleMigrationEncountered
OnMigrationExecuted
Raises the MigrationExecuted event.
OnMigrationExecuting
Raises the MigrationExecuting event.
ValidateDatabase
Execute checks to ensure the database is in a ready state for migrations to be executed against it

Properties

  NameDescription
MigrationLogger
Gets or sets a logger to receive events and information about executed migrations.
ProviderType
The type of database against which to run the migrations.

Events

  NameDescription
IrreversibleMigrationEncountered
Raised when an attempt has been made to reverse an irreversible migration.
MigrationExecuted
Raised after a migration has been executed.
MigrationExecuting
Raised when a migration is about to be executed.

See Also