KeyExtensions.IsPrimaryKey(IKey) 方法

定義

傳回值,指出索引鍵是否為主鍵。

public static bool IsPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IKey key);
static member IsPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IKey -> bool
<Extension()>
Public Function IsPrimaryKey (key As IKey) As Boolean

參數

key
IKey

要尋找其是否為主要金鑰的索引鍵。

傳回

true 如果索引鍵是主鍵,則為 。

適用於