Search Results for

    Show / Hide Table of Contents
    View Source

    Class MergeBuilder

    Represents a migration plan builder for merges.

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Migrations
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class MergeBuilder

    Methods

    View Source

    As(string)

    Finalizes the merge operation by updating the migration plan to reach the specified target state.

    Declaration
    public MigrationPlan As(string targetState)
    Parameters
    Type Name Description
    string targetState

    The final state to which the migration plan should merge.

    Returns
    Type Description
    MigrationPlan

    The MigrationPlan representing the completed merge.

    View Source

    To(string)

    Adds a transition from the current state to the specified target state using an empty (no-operation) migration.

    Declaration
    public MergeBuilder To(string targetState)
    Parameters
    Type Name Description
    string targetState

    The target state to transition to.

    Returns
    Type Description
    MergeBuilder

    The current MergeBuilder instance.

    View Source

    To(string, Type)

    Adds a transition from the current state to the specified target state using the provided migration type.

    Declaration
    public MergeBuilder To(string targetState, Type migration)
    Parameters
    Type Name Description
    string targetState

    The name of the target state to transition to.

    Type migration

    The System.Type of the migration that performs the transition.

    Returns
    Type Description
    MergeBuilder

    The current MergeBuilder instance for method chaining.

    View Source

    To<TMigration>(string)

    Adds a transition to the specified target state using the given migration type.

    Declaration
    public MergeBuilder To<TMigration>(string targetState) where TMigration : AsyncMigrationBase
    Parameters
    Type Name Description
    string targetState

    The target state to transition to.

    Returns
    Type Description
    MergeBuilder

    The current MergeBuilder instance for chaining.

    Type Parameters
    Name Description
    TMigration

    The type of migration to apply during the transition.

    View Source

    With()

    Marks the start of the second branch in the merge operation, enabling further configuration.

    Declaration
    public MergeBuilder With()
    Returns
    Type Description
    MergeBuilder

    The current MergeBuilder instance for method chaining.

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