OleDbDataAdapter
This class represents a data adapter that can transfer information
from an OLE DB data source to a
System.Data.DataSet
and update a data source with
changes made to the DataSet
. For information
about the basic OleDbDataAdapter
methods and
properties, refer to the reference for the
System.Data.IDbDataAdapter
and
System.Data.IDataAdapter
interfaces, which
OleDbDataAdapter
implements.
public sealed class OleDbDataAdapter : System.Data.Common.DbDataAdapter, System.Data.IDbDataAdapter { // Public Constructors public OleDbDataAdapter( ); public OleDbDataAdapter(OleDbCommandselectCommand
); public OleDbDataAdapter(stringselectCommandText
, OleDbConnectionselectConnection
); public OleDbDataAdapter(stringselectCommandText
, stringselectConnectionString
); // Public Instance Properties public OleDbCommand DeleteCommand{set; get; } public OleDbCommand InsertCommand{set; get; } public OleDbCommand SelectCommand{set; get; } public OleDbCommand UpdateCommand{set; get; } // Public Instance Methods public int Fill(System.Data.DataSetdataSet
, objectADODBRecordSet
, stringsrcTable
); public int Fill(System.Data.DataTabledataTable
, objectADODBRecordSet
); // Protected Instance Methods protected override RowUpdatedEventArgs CreateRowUpdatedEvent(System.Data.DataRowdataRow
, System.Data.IDbCommandcommand
, System.Data.StatementTypestatementType
, System.Data.Common. DataTableMappingtableMapping
); // overrides System.Data.Common.DbDataAdapter protected override RowUpdatingEventArgs CreateRowUpdatingEvent(System.Data.DataRowdataRow
, System.Data.DataRowdataRow
, System.Data.IDbCommandcommand
, System.Data.StatementTypestatementType
, System.Data.Common.DataTableMappingtableMapping
);// overrides System.Data.Common.DbDataAdapter protected override void Dispose(booldisposing
); // overrides System.Data.Common.DbDataAdapter protected override void OnRowUpdated( System.Data.Common.RowUpdatedEventArgsvalue
); // overrides System.Data.Common.DbDataAdapter protected override void OnRowUpdating( // overrides System.Data.Common.DbDataAdapter System.Data.Common.RowUpdatingEventArgsvalue
); // Events public event OleDbRowUpdatedEventHandler RowUpdated; public event OleDbRowUpdatingEventHandler RowUpdating; }