Class VersionInfo
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Versioning
Assembly: FluentMigrator.Runner.dll
Syntax
public class VersionInfo : IVersionInfo
Methods
| Edit this page View SourceAddAppliedMigration(long)
Adds a migration version number as applied
Declaration
public void AddAppliedMigration(long migration)
Parameters
Type | Name | Description |
---|---|---|
long | migration | The version number |
AppliedMigrations()
Gets the version numbers of all applied migrations
Declaration
public 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
public 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
public long Latest()
Returns
Type | Description |
---|---|
long | The version number |