OleDbDataAdapter 类

定义

表示用于填充 DataSet 和更新数据源的一组数据命令和一个数据库连接。Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source.

public ref class OleDbDataAdapter sealed : System::Data::Common::DbDataAdapter, ICloneable
public sealed class OleDbDataAdapter : System.Data.Common.DbDataAdapter, ICloneable
type OleDbDataAdapter = class
    inherit DbDataAdapter
    interface IDbDataAdapter
    interface ICloneable
    interface IDataAdapter
Public NotInheritable Class OleDbDataAdapter
Inherits DbDataAdapter
Implements ICloneable
继承
实现

示例

下面的示例使用 OleDbCommandOleDbDataAdapterOleDbConnection从 Access 数据源中选择记录,并使用所选行填充 DataSetThe following example uses the OleDbCommand, OleDbDataAdapter and OleDbConnection, to select records from an Access data source, and populate a DataSet with the selected rows. 然后返回填充的 DataSetThe filled DataSet is then returned. 为实现此目的,该方法传递了一个初始化的 DataSet、一个连接字符串和一个 SQL SELECT 语句的查询字符串。To accomplish this, the method is passed an initialized DataSet, a connection string, and a query string that is an SQL SELECT statement.

public static OleDbDataAdapter CreateDataAdapter(string selectCommand,
    OleDbConnection connection)
{
    OleDbDataAdapter adapter = new OleDbDataAdapter(selectCommand, connection);

    adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey;

    // Create the Insert, Update and Delete commands.
    adapter.InsertCommand = new OleDbCommand(
        "INSERT INTO Customers (CustomerID, CompanyName) " +
        "VALUES (?, ?)");

    adapter.UpdateCommand = new OleDbCommand(
        "UPDATE Customers SET CustomerID = ?, CompanyName = ? " +
        "WHERE CustomerID = ?");

    adapter.DeleteCommand = new OleDbCommand(
        "DELETE FROM Customers WHERE CustomerID = ?");

    // Create the parameters.
    adapter.InsertCommand.Parameters.Add("@CustomerID", 
        OleDbType.Char, 5, "CustomerID");
    adapter.InsertCommand.Parameters.Add("@CompanyName", 
        OleDbType.VarChar, 40, "CompanyName");

    adapter.UpdateCommand.Parameters.Add("@CustomerID", 
        OleDbType.Char, 5, "CustomerID");
    adapter.UpdateCommand.Parameters.Add("@CompanyName", 
        OleDbType.VarChar, 40, "CompanyName");
    adapter.UpdateCommand.Parameters.Add("@oldCustomerID", 
        OleDbType.Char, 5, "CustomerID").SourceVersion = 
        DataRowVersion.Original;

    adapter.DeleteCommand.Parameters.Add("@CustomerID", 
        OleDbType.Char, 5, "CustomerID").SourceVersion = 
        DataRowVersion.Original;

    return adapter;
}
Public Function CreateDataAdapter(ByVal selectCommand As String, _
    ByVal connection As OleDbConnection) As OleDbDataAdapter

    Dim adapter As OleDbDataAdapter = _
        New OleDbDataAdapter(selectCommand, connection)

    adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey

    ' Create the commands.
    adapter.InsertCommand = New OleDbCommand( _
        "INSERT INTO Customers (CustomerID, CompanyName) " & _
         "VALUES (?, ?)")

    adapter.UpdateCommand = New OleDbCommand( _
        "UPDATE Customers SET CustomerID = ?, CompanyName = ? " & _
        "WHERE CustomerID = ?")

    adapter.DeleteCommand = New OleDbCommand( _
        "DELETE FROM Customers WHERE CustomerID = ?")

    ' Create the parameters.
    adapter.InsertCommand.Parameters.Add( _
        "@CustomerID", OleDbType.Char, 5, "CustomerID")
    adapter.InsertCommand.Parameters.Add( _
        "@CompanyName", OleDbType.VarChar, 40, "CompanyName")

    adapter.UpdateCommand.Parameters.Add( _
        "@CustomerID", OleDbType.Char, 5, "CustomerID")
    adapter.UpdateCommand.Parameters.Add( _
        "@CompanyName", OleDbType.VarChar, 40, "CompanyName")
    adapter.UpdateCommand.Parameters.Add( _
        "@oldCustomerID", OleDbType.Char, 5, "CustomerID").SourceVersion = _
        DataRowVersion.Original

    adapter.DeleteCommand.Parameters.Add( _
        "@CustomerID", OleDbType.Char, 5, "CustomerID").SourceVersion = _
        DataRowVersion.Original

    Return adapter
End Function

注解

OleDbDataAdapter 充当用于检索和保存数据的 DataSet 与数据源之间的桥梁。The OleDbDataAdapter serves as a bridge between a DataSet and data source for retrieving and saving data. OleDbDataAdapter 通过使用 Fill 将数据从数据源加载到 DataSet来提供此桥,并使用 Update 将在 DataSet 中所做的更改发送回数据源。The OleDbDataAdapter provides this bridge by using Fill to load data from the data source into the DataSet, and using Update to send changes made in the DataSet back to the data source.

OleDbDataAdapter 填充 DataSet时,它将为返回的数据创建相应的表和列(如果它们尚不存在)。When the OleDbDataAdapter fills a DataSet, it will create the appropriate tables and columns for the returned data if they do not already exist. 但是,除非 MissingSchemaAction 属性设置为 AddWithKey,否则不会在隐式创建的架构中包含主键信息。However, primary key information is not included in the implicitly created schema unless the MissingSchemaAction property is set to AddWithKey. 你还可以在使用 FillSchema填充数据之前,OleDbDataAdapter 创建 DataSet的架构(包括主键信息)。You may also have the OleDbDataAdapter create the schema of the DataSet, including primary key information, before filling it with data using FillSchema. 有关详细信息,请参阅将现有约束添加到数据集For more information, see Adding Existing Constraints to a DataSet.

请注意,某些 OLE DB 提供程序(包括 MSDataShape 提供程序)不返回基表或主键信息。Note that some OLE DB providers, including the MSDataShape provider, do not return base table or primary key information. 因此,OleDbDataAdapter 无法正确设置任何创建的 DataTable上的 PrimaryKey 属性。Therefore, the OleDbDataAdapter cannot correctly set the PrimaryKey property on any created DataTable. 在这些情况下,应在 DataSet中显式指定表的主键。In these cases you should explicitly specify primary keys for tables in the DataSet.

OleDbDataAdapter 还包括 SelectCommandInsertCommandDeleteCommandUpdateCommandTableMappings 属性,以便于加载和更新数据。The OleDbDataAdapter also includes the SelectCommand, InsertCommand, DeleteCommand, UpdateCommand, and TableMappings properties to facilitate the loading and updating of data.

创建 OleDbDataAdapter的实例时,属性将设置为其初始值。When you create an instance of OleDbDataAdapter, properties are set to their initial values. 有关这些值的列表,请参阅 OleDbDataAdapter 构造函数。For a list of these values, see the OleDbDataAdapter constructor.

构造函数

OleDbDataAdapter()

初始化 OleDbDataAdapter 类的新实例。Initializes a new instance of the OleDbDataAdapter class.

OleDbDataAdapter(OleDbCommand)

初始化 OleDbDataAdapter 类的新实例,用指定的 OleDbCommand 作为 SelectCommand 的属性。Initializes a new instance of the OleDbDataAdapter class with the specified OleDbCommand as the SelectCommand property.

OleDbDataAdapter(String, OleDbConnection)

OleDbDataAdapter 初始化 SelectCommand 类的新实例。Initializes a new instance of the OleDbDataAdapter class with a SelectCommand.

OleDbDataAdapter(String, String)

OleDbDataAdapter 初始化 SelectCommand 类的新实例。Initializes a new instance of the OleDbDataAdapter class with a SelectCommand.

字段

DefaultSourceTableName

DataAdapter 对象用于表映射的默认名称。The default name used by the DataAdapter object for table mappings.

(继承自 DbDataAdapter)

属性

AcceptChangesDuringFill

获取或设置一个值,该值指示在任何 FillAcceptChanges()DataRow 操作过程中,在将 DataTable 添加到 之后是否在 上调用它。Gets or sets a value indicating whether AcceptChanges() is called on a DataRow after it is added to the DataTable during any of the Fill operations.

(继承自 DataAdapter)
AcceptChangesDuringUpdate

获取或设置在 AcceptChanges() 期间是否调用 Update(DataSet)Gets or sets whether AcceptChanges() is called during a Update(DataSet).

(继承自 DataAdapter)
CanRaiseEvents

获取一个指示组件是否可以引发事件的值。Gets a value indicating whether the component can raise an event.

(继承自 Component)
Container

获取 IContainer,它包含 ComponentGets the IContainer that contains the Component.

(继承自 Component)
ContinueUpdateOnError

获取或设置一个值,该值指定在行更新过程中遇到错误时是否生成异常。Gets or sets a value that specifies whether to generate an exception when an error is encountered during a row update.

(继承自 DataAdapter)
DeleteCommand

获取或设置 SQL 语句或存储过程,用于从数据集中删除记录。Gets or sets an SQL statement or stored procedure for deleting records from the data set.

DesignMode

获取一个值,用以指示 Component 当前是否处于设计模式。Gets a value that indicates whether the Component is currently in design mode.

(继承自 Component)
Events

获取附加到此 Component 的事件处理程序的列表。Gets the list of event handlers that are attached to this Component.

(继承自 Component)
FillCommandBehavior

获取或设置用于填充数据适配器的命令的行为。Gets or sets the behavior of the command used to fill the data adapter.

(继承自 DbDataAdapter)
FillLoadOption

获取或设置 LoadOption,后者确定适配器如何从 DataTable 中填充 DbDataReaderGets or sets the LoadOption that determines how the adapter fills the DataTable from the DbDataReader.

(继承自 DataAdapter)
InsertCommand

获取或设置 SQL 语句或用于将新记录插入数据源的存储过程。Gets or sets an SQL statement or stored procedure used to insert new records into the data source.

MissingMappingAction

确定传入数据没有匹配的表或列时需要执行的操作。Determines the action to take when incoming data does not have a matching table or column.

(继承自 DataAdapter)
MissingSchemaAction

确定现有 DataSet 架构与传入数据不匹配时需要执行的操作。Determines the action to take when existing DataSet schema does not match incoming data.

(继承自 DataAdapter)
ReturnProviderSpecificTypes

获取或设置 Fill 方法是应当返回提供程序特定的值,还是返回公用的符合 CLS 的值。Gets or sets whether the Fill method should return provider-specific values or common CLS-compliant values.

(继承自 DataAdapter)
SelectCommand

获取或设置 SQL 语句或存储过程,用于选择数据源中的记录。Gets or sets an SQL statement or stored procedure used to select records in the data source.

Site

获取或设置 ISiteComponentGets or sets the ISite of the Component.

(继承自 Component)
TableMappings

获取一个集合,它提供源表和 DataTable 之间的主映射。Gets a collection that provides the master mapping between a source table and a DataTable.

(继承自 DataAdapter)
UpdateBatchSize

获取或设置一个值,该值启用或禁用批处理支持,并且指定可在一次批处理中执行的命令的数量。Gets or sets a value that enables or disables batch processing support, and specifies the number of commands that can be executed in a batch.

(继承自 DbDataAdapter)
UpdateCommand

获取或设置 SQL 语句或用于在数据源中更新记录的存储过程。Gets or sets an SQL statement or stored procedure used to update records in the data source.

方法

AddToBatch(IDbCommand)

向当前批处理添加 IDbCommandAdds a IDbCommand to the current batch.

(继承自 DbDataAdapter)
ClearBatch()

从批处理中移除所有 IDbCommand 对象。Removes all IDbCommand objects from the batch.

(继承自 DbDataAdapter)
CloneInternals()

创建此 DataAdapter 实例的一个副本。Creates a copy of this instance of DataAdapter.

(继承自 DataAdapter)
CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(继承自 MarshalByRefObject)
CreateRowUpdatedEvent(DataRow, IDbCommand, StatementType, DataTableMapping)

初始化 RowUpdatedEventArgs 类的新实例。Initializes a new instance of the RowUpdatedEventArgs class.

(继承自 DbDataAdapter)
CreateRowUpdatingEvent(DataRow, IDbCommand, StatementType, DataTableMapping)

初始化 RowUpdatingEventArgs 类的新实例。Initializes a new instance of the RowUpdatingEventArgs class.

(继承自 DbDataAdapter)
CreateTableMappings()

创建新的DataTableMappingCollectionCreates a new DataTableMappingCollection.

(继承自 DataAdapter)
Dispose()

释放 Component 使用的所有资源。Releases all resources used by the Component.

(继承自 Component)
Dispose(Boolean)

释放 DbDataAdapter 使用的非托管资源,并选择性地释放托管资源。Releases the unmanaged resources used by the DbDataAdapter and optionally releases the managed resources.

(继承自 DbDataAdapter)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
ExecuteBatch()

执行当前批处理。Executes the current batch.

(继承自 DbDataAdapter)
Fill(DataSet)

DataSet 中添加或刷新行。Adds or refreshes rows in the DataSet.

(继承自 DbDataAdapter)
Fill(DataSet, Int32, Int32, String)

DataSet 的指定范围中添加或刷新行以匹配使用 DataSetDataTable 名称的数据源中的行。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and DataTable names.

(继承自 DbDataAdapter)
Fill(DataSet, Int32, Int32, String, IDbCommand, CommandBehavior)

使用 DataSet 和源表名称、命令字符串以及命令行为,在 DataSet 的指定范围中添加或刷新某些行以使它们与数据源中对应的行相一致。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and source table names, command string, and command behavior.

(继承自 DbDataAdapter)
Fill(DataSet, Object, String)

使用指定的 DataSet、ADO 对象和源表名称,添加或刷新 Recordset 中的行,使之与 ADO RecordDataSet 对象中的行相匹配。Adds or refreshes rows in the DataSet to match those in an ADO Recordset or Record object using the specified DataSet, ADO object, and source table name.

Fill(DataSet, String)

DataSet 中添加或刷新行以匹配使用 DataSetDataTable 名称的数据源中的行。Adds or refreshes rows in the DataSet to match those in the data source using the DataSet and DataTable names.

(继承自 DbDataAdapter)
Fill(DataSet, String, IDataReader, Int32, Int32)

DataSet 的指定范围中添加或刷新行以与使用 DataSetDataTableIDataReader 名称的数据源中的行进行匹配。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet, DataTable, and IDataReader names.

(继承自 DbDataAdapter)
Fill(DataTable)

DataSet 的指定范围中添加或刷新行,以与使用 DataTable 名称的数据源中的行匹配。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataTable name.

(继承自 DbDataAdapter)
Fill(DataTable, IDataReader)

DataTable 中添加或刷新行,以与使用指定的 DataTableIDataReader 名称的数据源中的行匹配。Adds or refreshes rows in a DataTable to match those in the data source using the specified DataTable and IDataReader names.

(继承自 DbDataAdapter)
Fill(DataTable, IDbCommand, CommandBehavior)

DataTable 中添加或刷新行,以与使用指定的 DataTableIDbCommandCommandBehavior 的数据源中的行匹配。Adds or refreshes rows in a DataTable to match those in the data source using the specified DataTable, IDbCommand and CommandBehavior.

(继承自 DbDataAdapter)
Fill(DataTable, Object)

使用指定的 DataTable 和 ADO 对象,在 Recordset 中添加或刷新行,以便与 ADO RecordDataTable 对象中的行相匹配。Adds or refreshes rows in a DataTable to match those in an ADO Recordset or Record object using the specified DataTable and ADO objects.

Fill(DataTable[], IDataReader, Int32, Int32)

DataTable 对象集合的指定范围中添加或刷新行以与数据源中的行匹配。Adds or refreshes rows in a specified range in the collection of DataTable objects to match those in the data source.

(继承自 DataAdapter)
Fill(DataTable[], Int32, Int32, IDbCommand, CommandBehavior)

DataSet 的指定范围中添加或刷新行以匹配使用 DataSetDataTable 名称的数据源中的行。Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and DataTable names.

(继承自 DbDataAdapter)
Fill(Int32, Int32, DataTable[])

DataTable 中添加或刷新行,以与从指定的记录开始一直检索到指定的最大数目的记录的数据源中的行匹配。Adds or refreshes rows in a DataTable to match those in the data source starting at the specified record and retrieving up to the specified maximum number of records.

(继承自 DbDataAdapter)
FillSchema(DataSet, SchemaType)

将名为“Table”的 DataTable 添加到指定的 DataSet,并根据指定的 SchemaType 配置架构以匹配数据源中的架构。Adds a DataTable named "Table" to the specified DataSet and configures the schema to match that in the data source based on the specified SchemaType.

(继承自 DbDataAdapter)
FillSchema(DataSet, SchemaType, IDbCommand, String, CommandBehavior)

DataTable 添加到指定的 DataSet 中,并根据指定的 SchemaType 配置架构以匹配数据源中的架构。Adds a DataTable to the specified DataSet and configures the schema to match that in the data source based on the specified SchemaType.

(继承自 DbDataAdapter)
FillSchema(DataSet, SchemaType, String)

DataTable 添加到指定的 DataSet 中,并根据指定的 SchemaTypeDataTable 配置架构以匹配数据源中的架构。Adds a DataTable to the specified DataSet and configures the schema to match that in the data source based upon the specified SchemaType and DataTable.

(继承自 DbDataAdapter)
FillSchema(DataSet, SchemaType, String, IDataReader)

向指定的 DataTable 添加一个 DataSetAdds a DataTable to the specified DataSet.

(继承自 DataAdapter)
FillSchema(DataTable, SchemaType)

根据指定的 DataTable 配置指定 SchemaType 的架构。Configures the schema of the specified DataTable based on the specified SchemaType.

(继承自 DbDataAdapter)
FillSchema(DataTable, SchemaType, IDataReader)

向指定的 DataTable 添加一个 DataSetAdds a DataTable to the specified DataSet.

(继承自 DataAdapter)
FillSchema(DataTable, SchemaType, IDbCommand, CommandBehavior)

根据指定的 DataTable、命令字符串以及 SchemaType 值配置指定 CommandBehavior 的架构。Configures the schema of the specified DataTable based on the specified SchemaType, command string, and CommandBehavior values.

(继承自 DbDataAdapter)
GetBatchedParameter(Int32, Int32)

从当前批处理中的其中一个命令返回一个 IDataParameterReturns a IDataParameter from one of the commands in the current batch.

(继承自 DbDataAdapter)
GetBatchedRecordsAffected(Int32, Int32, Exception)

返回与较大的批处理更新内的单次更新尝试有关的信息。Returns information about an individual update attempt within a larger batched update.

(继承自 DbDataAdapter)
GetFillParameters()

获取当执行 SQL SELECT 语句时由用户设置的参数。Gets the parameters set by the user when executing an SQL SELECT statement.

(继承自 DbDataAdapter)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(继承自 MarshalByRefObject)
GetService(Type)

返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。Returns an object that represents a service provided by the Component or by its Container.

(继承自 Component)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
HasTableMappings()

指示是否已创建了一个 DataTableMappingCollectionIndicates whether a DataTableMappingCollection has been created.

(继承自 DataAdapter)
InitializeBatching()

初始化 DbDataAdapter 的批处理。Initializes batching for the DbDataAdapter.

(继承自 DbDataAdapter)
InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(继承自 MarshalByRefObject)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(继承自 MarshalByRefObject)
OnFillError(FillErrorEventArgs)

引发 FillError 事件。Raises the FillError event.

(继承自 DbDataAdapter)
OnRowUpdated(RowUpdatedEventArgs)

引发 .NET Framework 数据提供程序的 RowUpdated 事件。Raises the RowUpdated event of a .NET Framework data provider.

(继承自 DbDataAdapter)
OnRowUpdating(RowUpdatingEventArgs)

引发 .NET Framework 数据提供程序的 RowUpdating 事件。Raises the RowUpdating event of a .NET Framework data provider.

(继承自 DbDataAdapter)
ResetFillLoadOption()

FillLoadOption 重置为默认状态,并使 Fill(DataSet) 接受 AcceptChangesDuringFillResets FillLoadOption to its default state and causes Fill(DataSet) to honor AcceptChangesDuringFill.

(继承自 DataAdapter)
ShouldSerializeAcceptChangesDuringFill()

确定是否应保持 AcceptChangesDuringFill 属性。Determines whether the AcceptChangesDuringFill property should be persisted.

(继承自 DataAdapter)
ShouldSerializeFillLoadOption()

确定是否应保持 FillLoadOption 属性。Determines whether the FillLoadOption property should be persisted.

(继承自 DataAdapter)
ShouldSerializeTableMappings()

确定一个或多个 DataTableMapping 对象是否存在,并且它们是否应该是持久的。Determines whether one or more DataTableMapping objects exist and they should be persisted.

(继承自 DataAdapter)
TerminateBatching()

结束 DbDataAdapter 的批处理。Ends batching for the DbDataAdapter.

(继承自 DbDataAdapter)
ToString()

返回包含 String 的名称的 Component(如果有)。Returns a String containing the name of the Component, if any. 不应重写此方法。This method should not be overridden.

(继承自 Component)
Update(DataRow[])

通过为 DataSet 中的指定数组中的每个已插入、已更新或已删除的行执行相应的 INSERT、UPDATE 或 DELETE 语句来更新数据库中的值。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified array in the DataSet.

(继承自 DbDataAdapter)
Update(DataRow[], DataTableMapping)

通过为指定的 DataSet 对象数组中的每个已插入、已更新或已删除的行执行相应的 INSERT、UPDATE 或 DELETE 语句来更新数据库中的值。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified array of DataSet objects.

(继承自 DbDataAdapter)
Update(DataSet)

通过为指定的 DataSet 中的每个已插入、已更新或已删除的行执行相应的 INSERT、UPDATE 或 DELETE 语句来更新数据库中的值。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified DataSet.

(继承自 DbDataAdapter)
Update(DataSet, String)

通过为具有指定名称 DataSetDataTable 中的每个已插入、已更新或已删除的行执行相应的 INSERT、UPDATE 或 DELETE 语句来更新数据库中的值。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the DataSet with the specified DataTable name.

(继承自 DbDataAdapter)
Update(DataTable)

通过为指定的 DataTable 中的每个已插入、已更新或已删除的行执行相应的 INSERT、UPDATE 或 DELETE 语句来更新数据库中的值。Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified DataTable.

(继承自 DbDataAdapter)

事件

Disposed

当通过调用 Dispose() 方法释放组件时发生。Occurs when the component is disposed by a call to the Dispose() method.

(继承自 Component)
FillError

在填充操作过程中出现错误时返回。Returned when an error occurs during a fill operation.

(继承自 DbDataAdapter)
RowUpdated

在对数据源执行命令后的 Update(DataSet) 过程中发生。Occurs during Update(DataSet) after a command is executed against the data source. 尝试进行更新。The attempt to update is made. 因此,事件发生。Therefore, the event occurs.

RowUpdating

在对数据源执行命令前的 Update(DataSet) 过程中发生。Occurs during Update(DataSet) before a command is executed against the data source. 尝试进行更新。The attempt to update is made. 因此,事件发生。Therefore, the event occurs.

显式接口实现

ICloneable.Clone()

有关此成员的说明,请参阅 Clone()For a description of this member, see Clone().

IDataAdapter.TableMappings

指示如何将源表映射到数据集表。Indicates how a source table is mapped to a dataset table.

(继承自 DataAdapter)
IDbDataAdapter.DeleteCommand

有关此成员的说明,请参阅 DeleteCommandFor a description of this member, see DeleteCommand.

IDbDataAdapter.InsertCommand

有关此成员的说明,请参阅 InsertCommandFor a description of this member, see InsertCommand.

IDbDataAdapter.SelectCommand

有关此成员的说明,请参阅 SelectCommandFor a description of this member, see SelectCommand.

IDbDataAdapter.UpdateCommand

有关此成员的说明,请参阅 UpdateCommandFor a description of this member, see UpdateCommand.

适用于

另请参阅