Search Results for

    Show / Hide Table of Contents

    Class MaintenanceAttribute

    Annotates migrations that should always be executed at a specified stage.

    Inheritance
    object
    Attribute
    MaintenanceAttribute
    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, AllowMultiple = false, Inherited = false)]
    public class MaintenanceAttribute : Attribute, _Attribute
    Remarks

    Migration annotated with MaintenanceAttribute will be always executed when migrating the database to the latest version. The execution stage in which it would be executed is defined by Stage. The transaction behavior can also be defined with the TransactionBehavior, which if not specified defaults to the default transaction behavior.

    Constructors

    MaintenanceAttribute(MigrationStage)

    Declaration
    public MaintenanceAttribute(MigrationStage stage)
    Parameters
    Type Name Description
    MigrationStage stage

    MaintenanceAttribute(MigrationStage, TransactionBehavior)

    Declaration
    public MaintenanceAttribute(MigrationStage stage, TransactionBehavior transactionBehavior)
    Parameters
    Type Name Description
    MigrationStage stage
    TransactionBehavior transactionBehavior

    Properties

    Stage

    Declaration
    public MigrationStage Stage { get; }
    Property Value
    Type Description
    MigrationStage

    TransactionBehavior

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

    Implements

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