Class UnscopedMigrationBase
Base class for creating a migration that does not have a scope provided for it.
Namespace: Umbraco.Cms.Infrastructure.Migrations
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class UnscopedMigrationBase : MigrationBase, IDiscoverable
Constructors
View SourceUnscopedMigrationBase(IMigrationContext)
Declaration
protected UnscopedMigrationBase(IMigrationContext context)
Parameters
Type | Name | Description |
---|---|---|
IMigrationContext | context |
Methods
View SourceScopeDatabase(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. |