# Step 3 of 8: Generating the Dataset

## Content

In this step you will create a dataset based on the queries you specified for the data adapters. The dataset is an instance of the DataSet class based on the corresponding XML Schema (.xsd) file that describes the class’s elements (table, columns, and constraints).

1. From the **Data** menu, choose **Generate DataSet**. The **Generate DataSet** dialog box appears.

 ![](https://cdn.mescius.io/document-site-files/images/9533f9b7-015c-42ba-9666-c32678ceddaf/documentsgraphics/generatedataset.png)

2. Select the New option to name the dataset Dataset1.
3. In the list under Choose which table(s) to add to the dataset, the **Categories**, **Products**, and **Suppliers** table should be selected.
4. Make sure the **Add this dataset to the designer** is selected and then click **OK**.

Visual Studio adds an instance of the new dataset class **DataSet1** to the form.