Search Results for

    Show / Hide Table of Contents
    View Source

    Class UnscopedMigrationBase

    Base class for creating a migration that does not have a scope provided for it.

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

    Constructors

    View Source

    UnscopedMigrationBase(IMigrationContext)

    Declaration
    protected UnscopedMigrationBase(IMigrationContext context)
    Parameters
    Type Name Description
    IMigrationContext context

    Methods

    View Source

    ScopeDatabase(IScope)

    Scope the database used by the migration builder.

    This is used with UnscopedMigrationBase when you need to execute something before the scope is created but later need to have your queries scoped in a transaction.

    Declaration
    protected void ScopeDatabase(IScope scope)
    Parameters
    Type Name Description
    IScope scope

    The scope to get the database from.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UnscopedMigrationBase(IMigrationContext)
    • Methods
      • ScopeDatabase(IScope)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX