DekGenius.com
[ Team LiB ] Previous Section Next Section

DbDataAdapter marshal by reference, disposable

System.Data.Common (system.data.dll) abstract class

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( DbDataAdapter adapter);  
// Public Static Fields
   public const string DefaultSourceTableName;                 // =Table
// Public Instance Methods
   public override int Fill( System.Data.DataSet dataSet);     // overrides DataAdapter
   public int Fill(System.Data.DataSet dataSet, int startRecord, int maxRecords, string srcTable);
   public int Fill(System.Data.DataSet dataSet, string srcTable);
   public int Fill( System.Data.DataTable dataTable);  
   public override DataTable[  ] FillSchema(System.Data.DataSet dataSet, System.Data.SchemaType schemaType);                    
// overrides DataAdapter
   public DataTable[  ] FillSchema(System.Data.DataSet dataSet, System.Data.SchemaType schemaType, string srcTable); 
   public DataTable FillSchema(System.Data.DataTable dataTable, System.Data.SchemaType schemaType);
   public override IDataParameter[  ] GetFillParameters(  );       // overrides DataAdapter
   public int Update( System.Data.DataRow[  ] dataRows);  
   public override int Update( System.Data.DataSet dataSet);   // overrides DataAdapter
   public int Update(System.Data.DataSet dataSet, string srcTable);
   public int Update( System.Data.DataTable dataTable);  
// Protected Instance Methods
   protected abstract RowUpdatedEventArgs CreateRowUpdatedEvent( System.Data.DataRow dataRow,
        System.Data.IDbCommand command, System.Data.StatementType statementType,
        DataTableMapping tableMapping);
   protected abstract RowUpdatingEventArgs CreateRowUpdatingEvent(System.Data.DataRow dataRow,
        System.Data.IDbCommand command, System.Data.StatementType statementType, DataTableMapping tableMapping); 
   protected override void Dispose( bool disposing);           // overrides DataAdapter
   protected virtual int Fill(System.Data.DataSet dataSet, nt startRecord, int maxRecords, string srcTable, 
        System.Data.IDbCommand command, System.Data.CommandBehavior behavior); string srcTable,
        System.Data.IDataReader dataReader, int startRecord, int maxRecords);
   protected virtual int Fill(System.Data.DataTable dataTable, System.Data.IDataReader dataReader);
   protected virtual int Fill(System.Data.DataTable dataTable, System.Data.IDbCommand command,
        System.Data.CommandBehavior behavior);
   protected virtual DataTable[  ] FillSchema(System.Data.DataSet dataSet, System.Data.SchemaType schemaType,
        System.Data.IDbCommand command, string srcTable, System.Data.CommandBehavior behavior);
   protected virtual DataTable FillSchema(System.Data.DataTable dataTable, System.Data.SchemaType schemaType,
        System.Data.IDbCommand command, System.Data.CommandBehavior behavior);
   protected virtual void OnFillError(System.Data.FillErrorEventArgs value);
   protected abstract void OnRowUpdated(RowUpdatedEventArgs value);
   protected abstract void OnRowUpdating(RowUpdatingEventArgs value);
   protected virtual int Update(System.Data.DataRow[  ] dataRows, DataTableMapping tableMapping); 
// Events
   public event FillErrorEventHandler FillError;  
}

Hierarchy

System.Object figs/U2192.gif System.MarshalByRefObject figs/U2192.gif System.ComponentModel.Component(System.ComponentModel.IComponent, System.IDisposable) figs/U2192.gif DataAdapter(System.Data.IDataAdapter) figs/U2192.gif DbDataAdapter(System.ICloneable)

Subclasses

System.Data.OleDb.OleDbDataAdapter , System.Data.OracleClient.OracleDataAdapter , System.Data.SqlClient.SqlDataAdapter

    [ Team LiB ] Previous Section Next Section