Class TransactionalMigrationScope
A migration scope encapsulating migrations in a transaction
Inherited Members
Namespace: FluentMigrator.Runner
Assembly: FluentMigrator.Runner.dll
Syntax
public class TransactionalMigrationScope : TrackingMigrationScope, IMigrationScope, IDisposable
Constructors
| Edit this page View SourceTransactionalMigrationScope(IMigrationProcessor, Action)
Initializes a new instance of the TransactionalMigrationScope class.
Declaration
public TransactionalMigrationScope(IMigrationProcessor processor, Action disposalAction)
Parameters
Type | Name | Description |
---|---|---|
IMigrationProcessor | processor | The migration processor |
Action | disposalAction | Called after the scope was cancelled |
Methods
| Edit this page View SourceDoCancel()
Called when Cancel() was called and the scope was active
Declaration
protected override void DoCancel()
Overrides
| Edit this page View SourceDoComplete()
Called when Complete() was called and the scope was active
Declaration
protected override void DoComplete()