The Migrator type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | 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.
|
![]() ![]() | Migrate | Overloaded. |
![]() | OnIrreversibleMigrationEncountered |
Raises the IrreversibleMigrationEncountered event.
|
![]() | 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
Name | Description | |
---|---|---|
![]() | 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
Name | Description | |
---|---|---|
![]() | 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.
|