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.
|SelectCommand||Contains the IDbCommand instance that is called to query data from the database|
|InsertCommand||An IDbCommand instance that is called to create new rows in the data source|
|UpdateCommand||An IDbCommand instance that is used to perform updates on rows|