Jazyk

MigrationAttribute Třída

Definice

Označuje, že třída je a Migration poskytuje její identifikátor.

[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
Dědičnost
MigrationAttribute
Atributy

Poznámky

Další informace a příklady najdete v tématu Migrace databází .

Konstruktory

Název Description
MigrationAttribute(String)

Vytvoří novou instanci tohoto atributu.

Vlastnosti

Název Description
Id

Identifikátor migrace.

Platí pro