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