Search Results for

    Show / Hide Table of Contents

    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
    object
    TrackingMigrationScope
    TransactionalMigrationScope
    TransactionalMigrationScope
    TransactionalMigrationScope
    TransactionalMigrationScope
    Implements
    IMigrationScope
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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()

    Implements

    IMigrationScope
    IDisposable
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.