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)>]
type MigrationAttribute = class
    inherit Attribute
Public NotInheritable Class MigrationAttribute
Inherits Attribute
Inheritance
MigrationAttribute
Attributes

Constructors

MigrationAttribute(String)

Creates a new instance of this attribute.

Properties

Id

The migration identifier.

Applies to