共用方式為


DatabaseTable.PrimaryKey 屬性

定義

資料表的主鍵。

public virtual Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabasePrimaryKey PrimaryKey { get; set; }
public virtual Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabasePrimaryKey? PrimaryKey { get; set; }
member this.PrimaryKey : Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabasePrimaryKey with get, set
Public Overridable Property PrimaryKey As DatabasePrimaryKey

屬性值

適用於