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.To browse the .NET Framework source code for this type, see the Reference Source.

    Inheritance
    object
    TrackingMigrationScope
    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.dll
    Syntax
    public class TrackingMigrationScope : IMigrationScope, IDisposable

    Constructors

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    Cancel()

    Marks the scope as cancelled.

    Declaration
    public void Cancel()
    Remarks

    This usually involves the rollback of a transaction.

    | Edit this page View Source

    Complete()

    Marks the scope as complete.

    Declaration
    public void Complete()
    Remarks

    This usually involves the commit a transaction.

    | Edit this page View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    | Edit this page View Source

    DoCancel()

    Called when Cancel() was called and the scope was active

    Declaration
    protected virtual void DoCancel()
    | Edit this page View Source

    DoComplete()

    Called when Complete() was called and the scope was active

    Declaration
    protected virtual void DoComplete()

    Implements

    IMigrationScope
    IDisposable
    • Edit this page
    • View Source
    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.