Name
DbDataAdapter
Synopsis
This class in an intermediate step in the
DataAdapter hierarchy. Relational database
provider-specific DataAdapter objects inherit from
this class, which extends the DataAdapter. Note
that this class doesn’t implement the
System.Data.IDbDataAdapter interface. If it did,
classes that derive from DbDataAdapter would be
forced to use weakly typed commands (in other words, allow any
System.Data.IDbCommand object for properties such
as SelectCommand instead of provider-specific
objects such as System.Data.SqlClient.SqlCommand
). A more complete description of the inheritance chain is provided
in the DataAdapter description.
You probably won’t ever use the
DbDataAdapter class directly. If you write generic
client-side code that works with any provider-specific object, refer
to the DataAdapter using the
System.Data.IDbDataAdapter interface, which
includes all important members in one package.
public abstract class DbDataAdapter : DataAdapter, ICloneable { // Protected Constructors protected DbDataAdapter( ); protected DbDataAdapter(DbDataAdapteradapter); // Public Static Fields public const string DefaultSourceTableName; // =Table // Public Instance Methods public override int Fill(System.Data.DataSetdataSet); // overrides DataAdapter public int Fill(System.Data.DataSetdataSet, intstartRecord, intmaxRecords, stringsrcTable); public int Fill(System.Data.DataSetdataSet, stringsrcTable); public int Fill(System.Data.DataTabledataTable); public override DataTable[ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access