语言

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

属性值

特性

注解

有关详细信息和示例,请参阅 数据库迁移 。

适用于