OracleDataAdapter.RowUpdating 事件

定义

在对数据源执行命令前的 Update(DataSet) 过程中发生。Occurs during Update(DataSet) before a command is executed against the data source.

public:
 event System::Data::OracleClient::OracleRowUpdatingEventHandler ^ RowUpdating;
public event System.Data.OracleClient.OracleRowUpdatingEventHandler RowUpdating;
member this.RowUpdating : System.Data.OracleClient.OracleRowUpdatingEventHandler 
Public Custom Event RowUpdating As OracleRowUpdatingEventHandler 

注解

使用 Update 方法时,每个更新的数据行发生两个事件。When using the Update method, there are two events that occur per data row updated. 执行顺序如下所示:The order of execution is as follows:

  1. DataRow 中的值将移至参数值。The values in the DataRow are moved to the parameter values.

  2. 引发 OnRowUpdating 事件。The OnRowUpdating event is raised.

  3. 命令执行。The command executes.

  4. 如果 UpdateRowSource 枚举设置为 FirstReturnedRecord,则返回的第一个结果将放置在DataRow中。If the UpdateRowSource enumeration is set to FirstReturnedRecord, the first returned result is placed in the DataRow.

  5. 如果有输出参数,它们将被放入DataRowIf there are output parameters, they are placed in the DataRow.

  6. 引发 OnRowUpdated 事件。The OnRowUpdated event is raised.

  7. 调用 AcceptChangesAcceptChanges is called.

适用于