| |||||||||||
DataTable.Constraints PropertySystem.Data Namespace DataTable Class Returns the collection of constraints maintained by this table. Syntax
Property Value
The property is read only with no default value. RemarksA ForeignKeyConstraint restricts the action performed when a value in a column ( or columns ) is either deleted or updated. Such a constraint is intended to be used with primary key columns. In a parent/child relationship between two tables, deleting a value from the parent table can affect the child rows in one of the following ways.
A UniqueConstraint becomes active when attempting to set a value in a primary key to a non-unique value. ExampleThe following example adds a ForeignKeyConstraint to the collection of constraints.
See AlsoDataTable Members AcceptRejectRule ForeignKeyConstraint UniqueConstraint Rule |
| ||||||||||
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