Interface IVersionInfo
Interface to query/update migration information
Namespace: FluentMigrator.Runner.Versioning
Assembly: FluentMigrator.Runner.dll
Syntax
public interface IVersionInfo
Methods
| Edit this page View SourceAddAppliedMigration(long)
Adds a migration version number as applied
Declaration
void AddAppliedMigration(long migration)
Parameters
Type | Name | Description |
---|---|---|
long | migration | The version number |
AppliedMigrations()
Gets the version numbers of all applied migrations
Declaration
IEnumerable<long> AppliedMigrations()
Returns
Type | Description |
---|---|
IEnumerable<long> | the version numbers of all applied migrations |
HasAppliedMigration(long)
Returns a value indicating whether a migration with the given version number has been applied
Declaration
bool HasAppliedMigration(long migration)
Parameters
Type | Name | Description |
---|---|---|
long | migration | The migration version number to validate |
Returns
Type | Description |
---|---|
bool |
|
Latest()
Gets the version number of the latest migration that has been applied
Declaration
long Latest()
Returns
Type | Description |
---|---|
long | The version number |