Class Upgrader
Used to run a Migration
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.Migrations.Upgrade
Assembly: Umbraco.Infrastructure.dll
Syntax
public class Upgrader
Constructors
View SourceUpgrader(MigrationPlan)
Initializes a new instance of the
Declaration
public Upgrader(MigrationPlan plan)
Parameters
Type | Name | Description |
---|---|---|
Migration |
plan |
Properties
View SourceName
Gets the name of the migration plan.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
Plan
Gets the migration plan.
Declaration
public MigrationPlan Plan { get; }
Property Value
Type | Description |
---|---|
Migration |
StateValueKey
Gets the key for the state value.
Declaration
public virtual string StateValueKey { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
View SourceExecute(IMigrationPlanExecutor, ICoreScopeProvider, IKeyValueService)
Executes.
Declaration
public ExecutedMigrationPlan Execute(IMigrationPlanExecutor migrationPlanExecutor, ICoreScopeProvider scopeProvider, IKeyValueService keyValueService)
Parameters
Type | Name | Description |
---|---|---|
IMigration |
migrationPlanExecutor | |
ICore |
scopeProvider | A scope provider. |
IKey |
keyValueService | A key-value service. |
Returns
Type | Description |
---|---|
Executed |