DbDataAdapter Class
Aids implementation of the IDbDataAdapter interface. Inheritors of DbDataAdapter implement a set of functions to provide strong typing, but inherit most of the functionality needed to fully implement a DataAdapter.
For a list of all members of this type, see DbDataAdapter Members.
System.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
[Visual Basic] MustInherit Public Class DbDataAdapter Inherits DataAdapter Implements ICloneable [C#] public abstract class DbDataAdapter : DataAdapter, ICloneable [C++] public __gc __abstract class DbDataAdapter : public DataAdapter, ICloneable [JScript] public abstract class DbDataAdapter extends DataAdapter implements ICloneable
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
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, it is recommended 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. |
To promote consistency among .NET Framework data providers, you should name the inheriting class in the form Prv DataAdapter where Prv is the uniform prefix given to all classes in a specific .NET Framework data provider namespace. For example, Sql is the prefix of the SqlDataAdapter class in the System.Data.SqlClient namespace.
Requirements
Namespace: System.Data.Common
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: System.Data (in System.Data.dll)
See Also
DbDataAdapter Members | System.Data.Common Namespace | DataAdapter | IDbCommand | IDbConnection