語言

MigrationAttribute 類別

定義

表示類別為 a Migration ,並提供其識別碼。

[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
繼承
MigrationAttribute
屬性

備註

更多資訊與範例請參見 資料庫遷移 。

建構函式

名稱 Description
MigrationAttribute(String)

建立一個新的屬性實例。

屬性

名稱 Description
Id

遷移識別碼。

適用於