Share via


IReadOnlyProperty.IsPrimaryKey 方法

定义

获取一个值,该值指示此属性是用作主键 (还是复合主键) 的一部分。

public virtual bool IsPrimaryKey ();
abstract member IsPrimaryKey : unit -> bool
override this.IsPrimaryKey : unit -> bool
Public Overridable Function IsPrimaryKey () As Boolean

返回

true 如果 属性用作主键,则为 ;否则为 false

适用于