MigrationAttribute Class

Definition

Indicates that a class is a Migration and provides its identifier.

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class MigrationAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class MigrationAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type MigrationAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type MigrationAttribute = class
    inherit Attribute
Public NotInheritable Class MigrationAttribute
Inherits Attribute
Inheritance
MigrationAttribute
Attributes

Remarks

See Database migrations for more information and examples.

Constructors

Name Description
MigrationAttribute(String)

Creates a new instance of this attribute.

Properties

Name Description
Id

The migration identifier.

Applies to