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 |
---|---|---|
IMigration |
context |
Methods
View SourceScopeDatabase(IScope)
Scope the database used by the migration builder.
This is used with Unscoped
Declaration
protected void ScopeDatabase(IScope scope)
Parameters
Type | Name | Description |
---|---|---|
IScope | scope | The scope to get the database from. |