Main Page
Using the DataRelation Class
The DataRelation class supports data relations between data tables. Here is the inheritance hierarchy of this class:
You can find the more notable public properties of DataRelation objects in Table 22.35 and their more notable methods in Table 22.36. (This class has no non-inherited events.)
Table 22.35: Noteworthy public properties of DataRelation objects.
Property
|
Means
|
ChildColumns
|
Gets the child column objects for the relation.
|
ChildKeyConstraint
|
Gets the child key constraint for the relation.
|
ChildTable
|
Gets the child table of this relation.
|
DataSet
|
Gets the dataset the relation is contained in.
|
Nested
|
Gets/sets if relations are nested.
|
ParentColumns
|
Gets the parent column objects for the relation.
|
ParentKeyConstraint
|
Gets the constraint that ensures values in the parent column of the relation are unique.
|
ParentTable
|
Gets the parent table for the relation.
|
RelationName
|
Gets/sets the name of the relation.
|
Table 22.36: Noteworthy public methods of DataRelation objects.
Method
|
Means
|
ToString
|
Gets the relation's name, if there is one.
|