Using DataSet Objects
In some ways, the DataSet and its related classes resemble matryoshka—those nested wooden Russian dolls. A DataSet contains DataTable objects and DataRelation objects. A DataTable contains DataRow, DataColumn, and Constraint objects. Each of these classes resides in the System.Data namespace.
Rather than try to explain how each class is used one at a time, I will illustrate the basic functionality of the DataSet in this chapter by working through simple examples. Along the way, you’ll learn a little about each of the other classes I’ve just mentioned.
Creating a DataSet Object
Instantiating a DataSet object in code is straightforward. You simply use the New keyword in your language of choice. The DataSet class has one optional ...
Get Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.