Sprache

MigrationAttribute Klasse

Definition

Gibt an, dass es sich bei einer Klasse um eine Migration Klasse handelt und deren Bezeichner bereitstellt.

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

Hinweise

Weitere Informationen und Beispiele finden Sie unter Datenbankmigrationen .

Konstruktoren

Name Beschreibung
MigrationAttribute(String)

Erstellt eine neue Instanz dieses Attributs.

Eigenschaften

Name Beschreibung
Id

Der Migrationsbezeichner.

Gilt für: