Delen via


KeyExtensions.IsPrimaryKey(IKey) Method

Definition

Returns a value indicating whether the key is the primary key.

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

Parameters

key
IKey

The key to find whether it is primary.

Returns

true if the key is the primary key.

Applies to