DbDataAdapter Class
Assembly: System.Data (in system.data.dll)
The DbDataAdapter class inherits from the DataAdapter class and helps a class implement a DataAdapter designed for use with a relational database.
An application does not create an instance of the DbDataAdapter interface directly, but creates an instance of a class that inherits IDbDataAdapter and DbDataAdapter.
Classes that inherit DbDataAdapter must implement the inherited members, and typically define additional members to add provider-specific functionality. For example, the DbDataAdapter class defines the SelectCommand property, and the DbDataAdapter interface defines eight overloads of the Fill method. In turn, the OleDbDataAdapter class inherits the Fill method, and also defines two additional overloads of Fill that take an ADO Recordset object as a parameter.
Notes to Inheritors: When you inherit from the DbDataAdapter class, we recommend that you implement the following constructors:| Item | Description |
|---|---|
| PrvDataAdapter() | Initializes a new instance of the PrvDataAdapter class. |
| PrvDataAdapter(PrvCommand selectCommand) | Initializes a new instance of the PrvDataAdapter class with the specified SQL SELECT statement. |
| PrvDataAdapter(string selectCommandText, string selectConnectionString) | Initializes a new instance of the PrvDataAdapter class with an SQL SELECT statement and a connection string. |
| PrvDataAdapter(string selectCommandText, PrvConnection selectConnection) | Initializes a new instance of the PrvDataAdapter class with an SQL SELECT statement and a PrvConnection object. |
System.MarshalByRefObject
System.ComponentModel.Component
System.Data.Common.DataAdapter
System.Data.Common.DbDataAdapter
System.Data.Odbc.OdbcDataAdapter
System.Data.OleDb.OleDbDataAdapter
System.Data.OracleClient.OracleDataAdapter
System.Data.SqlClient.SqlDataAdapter
System.Data.SqlServerCe.SqlCeDataAdapter
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.