Interface IDbMigrationService
This interface is implemented to allow for managed DbMigrations for Platform Extensions.
Namespace: Cireson.Core.Interfaces.DataAccess
Assembly: Cireson.Core.Interfaces.dll
Syntax
public interface IDbMigrationService
Remarks
Admin, 8/24/2017.
Properties
View SourceDbMigrationProvider
DbMigrationProvider that will provide instances for migration.
Declaration
IDbMigrationProvider DbMigrationProvider { get; set; }
Property Value
Type | Description |
---|---|
IDbMigrationProvider | The database migration provider. |
Methods
View SourceApplyMigration(String)
Applies a named migration to the current database.
Declaration
void ApplyMigration(string migration)
Parameters
Type | Name | Description |
---|---|---|
System.String | migration | . |
Remarks
This can be up or down migration.
AutoUpdateDbToLatest()
uses auto migrations to update the current model to the latest.
Declaration
void AutoUpdateDbToLatest()
RemoveAllMigrations()
Removes all migrations from the current database.
Declaration
void RemoveAllMigrations()
UpdateDbToLatest()
Applies all migrations up to the latest for the current database.
Declaration
void UpdateDbToLatest()