ComponentOne DataObjects for .NET
PrimaryKey Property (Field)

C1.Data.2 Assembly > C1.Data.SchemaObjects Namespace > Field Class : PrimaryKey Property
Gets or sets a value indicating whether the field belongs to the table's primary key.
Syntax
'Declaration
 
Public Overridable Property PrimaryKey As System.Boolean
public virtual System.bool PrimaryKey {get; set;}
Remarks
Every modifiable (ReadOnly:Table set to False) table must have primary key, that is, at least one field with PrimaryKey property set to True. Primary key values must be unique in table rows, an attempt to set a duplicate primary key generates an exception.
See Also

Reference

Field Class
Field Members
Table Fields