語言

ModelSnapshot.LastMigrationId 屬性

定義

最新遷移的 ID 在快照建立時套用到模型上。

[System.Runtime.CompilerServices.Nullable(2)]
public virtual string? LastMigrationId { get; }
[<System.Runtime.CompilerServices.Nullable(2)>]
member this.LastMigrationId : string
Public Overridable ReadOnly Property LastMigrationId As String

屬性值

屬性

備註

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

適用於