DekGenius.com
Team LiB
Previous Section Next Section

DataRelationCollection

A DataSet acts as in-memory data storage and a container of DataTable components. For the proper management of relationships between items of related DataTable components that it contains, the DataSet maintains a collection of DataRelation components inside another component called DataRelationCollection. This component is another optimized version of the generic ICollection component.

A relationship between a DataColumn of one DataTable to that of another DataTable allows for the association of DataRows between the two tables. A typical relationship would be Order and OrderItems.

The advantages of using a DataRelationCollection are:

Team LiB
Previous Section Next Section