Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMigrationContext

    Provides context to migrations.

    Namespace: Umbraco.Cms.Infrastructure.Migrations
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public interface IMigrationContext

    Properties

    View Source

    BuildingExpression

    Gets or sets a value indicating whether an expression is being built.

    Declaration
    bool BuildingExpression { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    Database

    Gets the database instance.

    Declaration
    IUmbracoDatabase Database { get; }
    Property Value
    Type Description
    IUmbracoDatabase
    View Source

    Index

    Gets or sets the expression index.

    Declaration
    int Index { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    Logger

    Gets the logger.

    Declaration
    ILogger<IMigrationContext> Logger { get; }
    Property Value
    Type Description
    ILogger<IMigrationContext>
    View Source

    Plan

    Gets the current migration plan

    Declaration
    MigrationPlan Plan { get; }
    Property Value
    Type Description
    MigrationPlan
    View Source

    SqlContext

    Gets the Sql context.

    Declaration
    ISqlContext SqlContext { get; }
    Property Value
    Type Description
    ISqlContext

    Methods

    View Source

    AddPostMigration<TMigration>()

    Adds a post-migration.

    Declaration
    void AddPostMigration<TMigration>()
        where TMigration : MigrationBase
    Type Parameters
    Name Description
    TMigration
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • BuildingExpression
      • Database
      • Index
      • Logger
      • Plan
      • SqlContext
    • Methods
      • AddPostMigration<TMigration>()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX