Search Results for

    Show / Hide Table of Contents

    Class NonAttributedMigrationToMigrationInfoAdapter

    This adapter wraps a migration into a MigrationInfo instance, used to keep IMigration backwards compatible with new IMigrationInfo.

    Inheritance
    object
    NonAttributedMigrationToMigrationInfoAdapter
    Implements
    IMigrationInfo
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Infrastructure
    Assembly: FluentMigrator.dll
    Syntax
    public class NonAttributedMigrationToMigrationInfoAdapter : IMigrationInfo

    Constructors

    NonAttributedMigrationToMigrationInfoAdapter(IMigration)

    Initializes a new instance of the NonAttributedMigrationToMigrationInfoAdapter class.

    Declaration
    public NonAttributedMigrationToMigrationInfoAdapter(IMigration migration)
    Parameters
    Type Name Description
    IMigration migration

    The underlying migration

    NonAttributedMigrationToMigrationInfoAdapter(IMigration, TransactionBehavior)

    Initializes a new instance of the NonAttributedMigrationToMigrationInfoAdapter class.

    Declaration
    public NonAttributedMigrationToMigrationInfoAdapter(IMigration migration, TransactionBehavior transactionBehavior)
    Parameters
    Type Name Description
    IMigration migration

    The underlying migration

    TransactionBehavior transactionBehavior

    The desired transaction behavior

    Properties

    Description

    Gets the migration description

    Declaration
    public string Description { get; }
    Property Value
    Type Description
    string

    IsBreakingChange

    Gets a value indicating whether the migration is a breaking change

    Declaration
    public bool IsBreakingChange { get; }
    Property Value
    Type Description
    bool

    Migration

    Gets the migration

    Declaration
    public IMigration Migration { get; }
    Property Value
    Type Description
    IMigration

    TransactionBehavior

    Gets the desired transaction behavior

    Declaration
    public TransactionBehavior TransactionBehavior { get; }
    Property Value
    Type Description
    TransactionBehavior

    Version

    Gets the migration version

    Declaration
    public long Version { get; }
    Property Value
    Type Description
    long

    Methods

    GetName()

    Gets the migration name

    Declaration
    public string GetName()
    Returns
    Type Description
    string

    HasTrait(string)

    Returns a value indicating whether a given trait was specified

    Declaration
    public bool HasTrait(string name)
    Parameters
    Type Name Description
    string name

    The trait name

    Returns
    Type Description
    bool

    true when the trait was specified

    Trait(string)

    Gets the trait object with the given name

    Declaration
    public object Trait(string name)
    Parameters
    Type Name Description
    string name

    The trait name

    Returns
    Type Description
    object

    The object associated with the given name

    Implements

    IMigrationInfo

    Extension Methods

    ExtensionsForIMigrationInfo.IsAttributed(IMigrationInfo)
    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.