Class TrackingMigrationScope
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
Inheritance
Inherited Members
Namespace: FluentMigrator.Runner
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class TrackingMigrationScope : IMigrationScope, IDisposable
Constructors
TrackingMigrationScope(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
IsActive
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
Cancel()
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()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
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()