June 2002
Intermediate to advanced
864 pages
18h 35m
English
The DataSet class is a memory-resident, lightweight relational database class. It has properties that reflect the tables (Tables) and relationships between tables (Relations) within the dataset. You can control whether corresponding constraints are enforced with the EnforceConstraints property. You can name the dataset with the DataSetName property. You can also set the name of the dataset in the DataSet constructor.
The SqlDataAdapter class is used to get data from the database into the DataSet. The constructor of the HotelBroker class shows how to use a data adapter class to populate a dataset. The code is found in the Hotel subdirectory of the CaseStudy directory for this chapter.
conn = New SqlConnection(connString) ...
Read now
Unlock full access