Table Adapters

In Figure 9-6, you see another icon, called ToDo TableAdapter. Table adapters are another ADO.NET technology. Whereas data tables define the table structure and store rows of data, table adapters are how you can add, update, and delete data stored in a data table.

If you examine the ToDo TableAdapter section of the ToDo data table in the ToDoDataSet.xsd design surface, you see that a Fill method has already been created.

To configure an existing TableAdapter method

  1. Right-click the Fill method on the method in ToDoTableAdapter.

  2. Select Configure. (See Figure 9-7.)

    Configuring a Fill method.

    Figure 9-7. Configuring a Fill method.

    The TableAdapter Configuration Wizard ...

Get Microsoft® Visual Web Developer™ 2008 Express Edition Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.