UniqueConstraintExtensions.GetIsPrimaryKey(IUniqueConstraint) 方法

定义

获取一个值,该值指示此约束是否为主键。

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

参数

uniqueConstraint
IUniqueConstraint

元数据项。

返回

true 如果约束是主键,则为

适用于