Class MigrationBase
Provides a base class to all migrations.
Namespace: Umbraco.Cms.Infrastructure.Migrations
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class MigrationBase : AsyncMigrationBase, IDiscoverable
Constructors
View SourceMigrationBase(IMigrationContext)
Initializes a new instance of the MigrationBase class.
Declaration
protected MigrationBase(IMigrationContext context)
Parameters
Type | Name | Description |
---|---|---|
IMigrationContext | context | A migration context. |
Methods
View SourceMigrate()
Executes the migration.
Declaration
protected abstract void Migrate()
MigrateAsync()
Executes the migration.
Declaration
protected override Task MigrateAsync()
Returns
Type | Description |
---|---|
Task |