To create a strongly typed Data Set

  1. From the Database Explorer, select the data source you want to use.
  2. Drag and drop the name of the database table you want to use onto your form.

This displays a BdpConnection icon and a BdpDataAdapter icon in the Component Tray.

  1. Select the BdpDataAdapter.
  2. Click the Configure Data Adapter... designer verb in the Designer Verb area beneath the Object Inspector.

This displays the Data Adapter Configuration dialog.

  1. Modify the pre-filled SQL statement if you like.
  2. Click OK.

Note: Do not create a DataSet by selecting the DataSet tab in the Configure Data Adapter... dialog. That tab applies only to standard DataSets.

7. Click the Generate Typed Dataset... designer verb in the Designer Verb area beneath the Object Inspector.

This displays the Generate Dataset dialog.

  1. Select the database table you want to use.
  2. Click OK.

This creates an instance of the typed DataSet and displays an icon <DataSet Name>1 in the Component Tray. For example, if your DataSet is DataSet1, the new instance will be named dataSet11. You will also see that an XML .xsd file and a new program file appear in the Project Manager under your project.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment