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

属性值

适用于