Search Results for

    Show / Hide Table of Contents

    Class MigrationAttribute

    Attribute for a migration

    Inheritance
    object
    Attribute
    MigrationAttribute
    TimestampedMigrationAttribute
    TimestampedMigrationAttribute
    Implements
    _Attribute
    Inherited Members
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.Equals(object)
    Attribute.GetHashCode()
    Attribute.Match(object)
    Attribute.IsDefaultAttribute()
    Attribute.TypeId
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, Inherited = false)]
    public class MigrationAttribute : Attribute, _Attribute

    Constructors

    | Edit this page View Source

    MigrationAttribute(long, TransactionBehavior, string)

    Initializes a new instance of the MigrationAttribute class.

    Declaration
    public MigrationAttribute(long version, TransactionBehavior transactionBehavior = TransactionBehavior.Default, string description = null)
    Parameters
    Type Name Description
    long version

    The migration version

    TransactionBehavior transactionBehavior

    The desired transaction behavior

    string description

    The migration description

    | Edit this page View Source

    MigrationAttribute(long, string)

    Initializes a new instance of the MigrationAttribute class.

    Declaration
    public MigrationAttribute(long version, string description)
    Parameters
    Type Name Description
    long version

    The migration version

    string description

    The migration description

    Properties

    | Edit this page View Source

    BreakingChange

    Gets or sets a value indicating whether the transaction is a breaking change

    Declaration
    public bool BreakingChange { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Description

    Gets the description

    Declaration
    public string Description { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    TransactionBehavior

    Gets the desired transaction behavior

    Declaration
    public TransactionBehavior TransactionBehavior { get; }
    Property Value
    Type Description
    TransactionBehavior
    | Edit this page View Source

    Version

    Gets the migration version

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

    Implements

    _Attribute
    • 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.