语言

HeterogeneousTable.HasPrimaryKey 属性

定义

获取或设置表是否有主键。

public:
 property bool HasPrimaryKey { bool get(); void set(bool value); };
public bool HasPrimaryKey { get; set; }
member this.HasPrimaryKey : bool with get, set
Public Property HasPrimaryKey As Boolean

属性值

一个Boolean值。

如果 是真的,表上就定义了一个主键。

如果 不成立,则没有主键。

注解

该命名空间、类或成员仅在Microsoft .NET框架2.0版本中支持。

适用于