Interface IMigrationContext
Provides context to migrations.
Namespace: Umbraco.Cms.Infrastructure.Migrations
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IMigrationContext
Properties
View SourceBuildingExpression
Gets or sets a value indicating whether an expression is being built.
Declaration
bool BuildingExpression { get; set; }
Property Value
Type | Description |
---|---|
System. |
Database
Gets the database instance.
Declaration
IUmbracoDatabase Database { get; }
Property Value
Type | Description |
---|---|
IUmbraco |
Index
Gets or sets the expression index.
Declaration
int Index { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsCompleted
Declaration
bool IsCompleted { get; }
Property Value
Type | Description |
---|---|
System. |
Logger
Gets the logger.
Declaration
ILogger<IMigrationContext> Logger { get; }
Property Value
Type | Description |
---|---|
ILogger<IMigration |
Plan
Gets the current migration plan
Declaration
MigrationPlan Plan { get; }
Property Value
Type | Description |
---|---|
Migration |
SqlContext
Gets the Sql context.
Declaration
ISqlContext SqlContext { get; }
Property Value
Type | Description |
---|---|
ISql |
Methods
View SourceAddPostMigration<TMigration>()
Adds a post-migration.
Declaration
void AddPostMigration<TMigration>()
where TMigration : MigrationBase
Type Parameters
Name | Description |
---|---|
TMigration |
Complete()
Declaration
void Complete()