Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ProviderName

    Gets the name of the database provider this migration provider supports.

    Declaration
    string ProviderName { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    MigrateAllAsync()

    Executes all pending EF Core migrations.

    Declaration
    Task MigrateAllAsync()
    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

    View Source

    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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX