Class MigrationAttribute
Attribute for a migration
Inheritance
MigrationAttribute
Implements
Inherited Members
Namespace: FluentMigrator
Assembly: FluentMigrator.Abstractions.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class MigrationAttribute : Attribute, _Attribute
Constructors
| Edit this page View SourceMigrationAttribute(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 |
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 SourceBreakingChange
Gets or sets a value indicating whether the transaction is a breaking change
Declaration
public bool BreakingChange { get; set; }
Property Value
Type | Description |
---|---|
bool |
Description
Gets the description
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
string |
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 |