MigrationAttribute Klasse

Definition

Gibt an, dass eine Klasse ein Migration ist und ihren Bezeichner bereitstellt.

[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
Vererbung
MigrationAttribute
Attribute

Hinweise

Weitere Informationen und Beispiele finden Sie unter Datenbankmigrationen .

Konstruktoren

MigrationAttribute(String)

Erstellt eine neue instance dieses Attributs.

Eigenschaften

Id

Der Migrationsbezeichner.

Gilt für: