Implementing a Custom DataAdapter

As you saw in the previous chapter, the DataAdapter is essentially a plug that takes data from commands and plugs it into DataSets and DataTables. The DataAdapter implementation in this example takes a shortcut and inherits from an abstract base class called DbDataAdapter.

The IDbDataAdapter Interface

The IDbDataAdapter interface defines the properties listed in Table 28.6.

Table 28.6. Properties of the IDbDataAdapter Interface
PropertyDescription
SelectCommandContains the IDbCommand instance that is called to query data from the database
InsertCommandAn IDbCommand instance that is called to create new rows in the data source
UpdateCommandAn IDbCommand instance that is used to perform updates on rows
DeleteCommand ...

Get Microsoft® Visual C#® .NET 2003 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.