Interface IEFCoreMigrationExecutor
Represents a contract for executing migrations using Entity Framework Core within the Umbraco CMS infrastructure.
Namespace: Umbraco.Cms.Infrastructure.Migrations
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IEFCoreMigrationExecutor
Methods
View SourceExecuteAllMigrationsAsync()
Executes all pending Entity Framework Core migrations for the current database context asynchronously.
Declaration
Task ExecuteAllMigrationsAsync()
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task that represents the asynchronous migration operation. |
ExecuteSingleMigrationAsync(EFCoreMigration)
Asynchronously executes a single Entity Framework Core migration against the database.
Declaration
Task ExecuteSingleMigrationAsync(EFCoreMigration efCoreMigration)
Parameters
| Type | Name | Description |
|---|---|---|
| EFCoreMigration | efCoreMigration | The EF Core migration instance to execute. |
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task that represents the asynchronous execution of the migration. |