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

Name Beschreibung
MigrationAttribute(String)

Erstellt eine neue instance dieses Attributs.

Eigenschaften

Name Beschreibung
Id

Der Migrationsbezeichner.

Gilt für: