Sdílet prostřednictvím


UniqueConstraintExtensions.GetIsPrimaryKey(IUniqueConstraint) Metoda

Definice

Získá hodnotu označující, zda je toto omezení primárním klíčem.

public static bool GetIsPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint uniqueConstraint);
static member GetIsPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint -> bool
<Extension()>
Public Function GetIsPrimaryKey (uniqueConstraint As IUniqueConstraint) As Boolean

Parametry

uniqueConstraint
IUniqueConstraint

Položka metadat.

Návraty

true pokud je omezení primárním klíčem

Platí pro