Class TrackingMigrationScope
Inherited Members
Namespace: FluentMigrator.Runner
Assembly: FluentMigrator.Runner.dll
Syntax
public class TrackingMigrationScope : IMigrationScope, IDisposable
Constructors
| Edit this page View SourceTrackingMigrationScope(Action)
Initializes a new instance of the TrackingMigrationScope class.
Declaration
public TrackingMigrationScope(Action disposalAction)
Parameters
Type | Name | Description |
---|---|---|
Action | disposalAction | Called after the scope was cancelled |
Properties
| Edit this page View SourceIsActive
Gets a value indicating whether the migration scope is active?
Declaration
public virtual bool IsActive { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
A migration scope is considered active when it is the outmost scope.
Methods
| Edit this page View SourceCancel()
Marks the scope as cancelled.
Declaration
public void Cancel()
Remarks
This usually involves the rollback of a transaction.
Complete()
Marks the scope as complete.
Declaration
public void Complete()
Remarks
This usually involves the commit a transaction.
Dispose()
Declaration
public void Dispose()
DoCancel()
Called when Cancel() was called and the scope was active
Declaration
protected virtual void DoCancel()
DoComplete()
Called when Complete() was called and the scope was active
Declaration
protected virtual void DoComplete()