Class MergeBuilder
Represents a migration plan builder for merges.
Inheritance
Namespace: Umbraco.Cms.Infrastructure.Migrations
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MergeBuilder
Methods
View SourceAs(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. |
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. |
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. |
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. |
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. |