Interface IMigrationProvider
Provides database migration capabilities for a specific database provider.
Namespace: Umbraco.Cms.Persistence.EFCore.Migrations
Assembly: Umbraco.Cms.Persistence.EFCore.dll
Syntax
public interface IMigrationProvider
Properties
View SourceProviderName
Gets the name of the database provider this migration provider supports.
Declaration
string ProviderName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceMigrateAllAsync()
Executes all pending EF Core migrations.
Declaration
Task MigrateAllAsync()
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |
MigrateAsync(EFCoreMigration)
Executes a specific EF Core migration.
Declaration
Task MigrateAsync(EFCoreMigration migration)
Parameters
| Type | Name | Description |
|---|---|---|
| EFCoreMigration | migration | The migration to execute. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |