See Also

OracleDataAdapter Class  | OracleDataAdapter Members

Language

Visual Basic

C#

Show All

See AlsoLanguagesDevart.Data.OracleSend comments on this topic.

RowUpdating Event

Devart.Data.Oracle Namespace > OracleDataAdapter Class : RowUpdating Event (OracleDataAdapter)

Occurs during Update before a command is executed against the data source. The attempt to update is made, so the event fires.

[Visual Basic]
Public Event RowUpdating() As OracleRowUpdatingEventHandler
[C#]
public event OracleRowUpdatingEventHandler RowUpdating();

Remarks

The event handler receives an argument of type OracleRowUpdatingEventArgs containing data related to this event. The following OracleRowUpdatingEventArgs properties provide information specific to this event.
PropertyDescription
OracleRowUpdatedEventArgs.CommandGets the OracleCommand executed when Update is called.
Errors (inherited from RowUpdatingEventArgs)Gets any errors generated by the .NET data provider when the Command was executed.
Row (inherited from RowUpdatingEventArgs)Gets the DataRow to sent through an Update.
StatementType (RowUpdatingEventArgs)Gets the type of SQL statement to execute.
Status (inherited from RowUpdatingEventArgs)Gets the UpdateStatus of the Command.
TableMapping (inherited from RowUpdatingEventArgs)Gets the DataTableMapping to sent through an Update.

When using the Update method, there are two events that occur per data row updated. The order of execution is as follows:

  1. The values in the DataRow are moved to the parameter values.
  2. The RowUpdating event is raised.
  3. The command executes.
  4. If the UpdateRowSource enumeration is set to FirstReturnedRecordS, the first returned result is placed in the DataRow.
  5. If there are output parameters, they are placed in the DataRow.
  6. The OracleDataAdapter.RowUpdated event is raised.
  7. AcceptChanges is called.

See Also

OracleDataAdapter Class  | OracleDataAdapter Members

 

 


© 2002 - 2013 Devart. All Rights Reserved.