Table of Contents

Class MigrationAttribute

Namespace
Microsoft.EntityFrameworkCore.Migrations
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

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

[AttributeUsage(AttributeTargets.Class)]
public sealed class MigrationAttribute : Attribute
Inheritance
MigrationAttribute
Inherited Members

Constructors

MigrationAttribute(string)

Creates a new instance of this attribute.

public MigrationAttribute(string id)

Parameters

id string

The migration identifier.

Properties

Id

The migration identifier.

public string Id { get; }

Property Value

string