Sdílet prostřednictvím


MigrationAttribute Třída

Definice

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

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

Poznámky

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

Konstruktory

MigrationAttribute(String)

Vytvoří novou instanci tohoto atributu.

Vlastnosti

Id

Identifikátor migrace.

Platí pro