Class MigrationScopeHandler
Implements
Inherited Members
Namespace: FluentMigrator.Runner
Assembly: FluentMigrator.Runner.dll
Syntax
public class MigrationScopeHandler : IMigrationScopeManager
Constructors
| Edit this page View SourceMigrationScopeHandler(IMigrationProcessor)
Declaration
[Obsolete]
public MigrationScopeHandler(IMigrationProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
IMigrationProcessor | processor |
MigrationScopeHandler(IMigrationProcessor, ProcessorOptions)
Declaration
public MigrationScopeHandler(IMigrationProcessor processor, ProcessorOptions processorOptions)
Parameters
Type | Name | Description |
---|---|---|
IMigrationProcessor | processor | |
ProcessorOptions | processorOptions |
Properties
| Edit this page View SourceCurrentScope
Gets migration scope for the runner
Declaration
public IMigrationScope CurrentScope { get; set; }
Property Value
Type | Description |
---|---|
IMigrationScope |
Methods
| Edit this page View SourceBeginScope()
Creates new migration scope
Declaration
public IMigrationScope BeginScope()
Returns
Type | Description |
---|---|
IMigrationScope | Newly created scope |
CreateOrWrapMigrationScope(bool)
Creates new migrations scope or reuses existing one
Declaration
public IMigrationScope CreateOrWrapMigrationScope(bool transactional = true)
Parameters
Type | Name | Description |
---|---|---|
bool | transactional | Defines if transactions should be used |
Returns
Type | Description |
---|---|
IMigrationScope | Migration scope |