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
| Improve this Doc View SourceMigrationAttribute(Int64, 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 |
---|---|---|
Int64 | version | The migration version |
TransactionBehavior | transactionBehavior | The desired transaction behavior |
String | description | The migration description |
MigrationAttribute(Int64, String)
Initializes a new instance of the MigrationAttribute class.
Declaration
public MigrationAttribute(long version, string description)
Parameters
Type | Name | Description |
---|---|---|
Int64 | version | The migration version |
String | description | The migration description |
Properties
| Improve this Doc 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 |
---|---|
Boolean |
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 |
---|---|
Int64 |