Interface IDbMigrationProvider
Implement to provide migration information from the given assembly.
Namespace: Cireson.Core.Interfaces.DataAccess
Assembly: Cireson.Core.Interfaces.dll
Syntax
public interface IDbMigrationProvider
Remarks
Admin, 8/24/2017.
Properties
View SourceAssembly
Assembly to search for migrations.
Declaration
Assembly Assembly { get; set; }
Property Value
Type | Description |
---|---|
Assembly | The assembly. |
Methods
View SourceAppliedMigrations()
Returns a list of the migration names that have been applied to the current Database.
Declaration
IEnumerable<string> AppliedMigrations()
Returns
Type | Description |
---|---|
IEnumerable<System.String> | An enumerator that allows foreach to be used to process applied migrations in this collection. |
GetDbMigrationType(String)
Returns the migration type for the specified migration name.
Declaration
Type GetDbMigrationType(string migration)
Parameters
Type | Name | Description |
---|---|---|
System.String | migration | . |
Returns
Type | Description |
---|---|
Type | The database migration type. |
PendingMigrations()
Returns a list of migration names that have not been applied to the current database.
Declaration
IEnumerable<string> PendingMigrations()
Returns
Type | Description |
---|---|
IEnumerable<System.String> | An enumerator that allows foreach to be used to process pending migrations in this collection. |