| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UniqueConstraint ClassRepresents a restriction on a set of columns in which all values must be unique.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Visibility | Name | Value Type | Accessibility |
|---|---|---|---|
| public | Columns | DataColumn | [ Get ] |
| public | IsPrimaryKey | Boolean | [ Get ] |
| public | Table | DataTable | [ Get ] |
| Visibility | Name | Parameters | Return Type |
|---|---|---|---|
| public | Equals | ( Object key2 ) | Boolean |
| public | GetHashCode | ( ) | Int32 |
The UniqueConstraint is enforced on a single column ( or columns ) to ensure that a primary key value is unique.
Constraints are not enforced unless the EnforceConstraints property is set to true.
When a DataSet is merged with a second DataSet, constraints are not enforced until all merges are completed.
The following example adds a UniqueConstraint to a DataSet and sets the EnforceConstraints property to true.
[ xample to be supplied. ]
Constraint Constraints ConstraintCollection DataRelation ForeignKeyConstraint
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme