CHAPTER 22 ADO.NET PART II: THE DISCONNECTED LAYER
Figure 22-25. Your custom strongly typed types, this time within a Class Library project
Viewing the Generated Code
The DataSet designer created the exact same sort of code that the DataGridView wizard did in the
previous Windows Forms example. However, this time you account for the Inventory, Customers, and
Orders tables, as well as the GetPetName stored procedure, so you have many more generated classes.
Basically, each database table you drag onto the designer surface gives you DataTable, DataRow, and data
adapter classes contained in a strongly typed DataSet.
The strongly typed DataSet, DataTable, and DataRow classes will be placed into the root namespace
of the project (AutoLotDAL). The custom table adapters will be placed within a nested namespace. You
can view all of the generated types most easily by using the Class View tool, which you open from the
Visual Studio View menu (see Figure 22-26).
915