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 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.