Interface IMigrationBuilder
Represents a builder that defines the contract for constructing and configuring database migrations.
Namespace: Umbraco.Cms.Infrastructure.Migrations
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IMigrationBuilder
Methods
View SourceBuild(Type, IMigrationContext)
Creates an instance of the specified migration type using the provided migration context.
Declaration
AsyncMigrationBase Build(Type migrationType, IMigrationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | migrationType | The type of migration to instantiate. Must derive from AsyncMigrationBase. |
| IMigrationContext | context | The migration context to use for the migration instance. |
Returns
| Type | Description |
|---|---|
| AsyncMigrationBase | An instance of AsyncMigrationBase representing the migration. |