ModelSnapshot.LastMigrationId 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
最新遷移的 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
屬性值
- 屬性
備註
更多資訊與範例請參見 資料庫遷移 。