
Creating the Tables in the Dataset
This section will explain how to add tables to the dataset.
To create the Customers table
-
Expand the data connection you created in Server Explorer, and then expand the Tables node.
-
Drag the Customers table from Server Explorer onto the Dataset Designer.
A Customers data table and CustomersTableAdapter are added to the dataset.
To create the Orders table
-
Drag the Orders table from Server Explorer onto the Dataset Designer.
An Orders data table, OrdersTableAdapter, and data relation between the Customers and Orders tables are added to the dataset.
To create the OrderDetails table
-
Drag the Order Details table from Server Explorer onto the Dataset Designer.
An Order Details data table, Order DetailsTableAdapter, and a data relation between the Orders and Order Details tables are added to the dataset.