KeyExtensions.IsPrimaryKey(IKey) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.