共用方式為


ITable.PrimaryKey 屬性

定義

取得這個資料表的主鍵。

public Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint PrimaryKey { get; }
public Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint? PrimaryKey { get; }
member this.PrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint
Public ReadOnly Property PrimaryKey As IPrimaryKeyConstraint

屬性值

適用於