Search Results for

    Show / Hide Table of Contents
    View Source

    Class MigrationBase

    Provides a base class to all migrations.

    Inheritance
    System.Object
    AsyncMigrationBase
    Namespace: Umbraco.Cms.Infrastructure.Migrations
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public abstract class MigrationBase : AsyncMigrationBase, IDiscoverable

    Constructors

    View Source

    MigrationBase(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 Source

    Migrate()

    Executes the migration.

    Declaration
    protected abstract void Migrate()
    View Source

    MigrateAsync()

    Executes the migration.

    Declaration
    protected override Task MigrateAsync()
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX