Chapter 8. Using TableAdapters

After completing this chapter, you will be able to:

  • Create a TableAdapter class with the TableAdapter Configuration Wizard and the Server Explorer.

  • Create a TableAdapter object in Visual Studio and at run time.

  • Configure a TableAdapter class.

  • Add a query to a TableAdapter.

  • Configure a TableAdapter object.

  • Execute the query methods of a TableAdapter.

In earlier chapters, you've seen the TableAdapters created by the Data Source Configuration Wizard. If you've examined the scaffolding code in some of the exercises, you've even seen them instantiated and used. In this chapter, we'll examine this new class of objects in detail.

Understanding TableAdapters

The TableAdapter is new to Microsoft ADO.NET 2.0, or more properly, to Microsoft ...

Get Microsoft® ADO.NET 2.0 Step by Step, 2nd Edition 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.