Provides data for the RowUpdating event.
Assembly: System.Data (in System.Data.dll)
|SqlRowUpdatingEventArgs(DataRow^, IDbCommand^, StatementType, DataTableMapping^)|
Initializes a new instance of theclass.
Gets the type of SQL statement to execute.(Inherited from RowUpdatingEventArgs.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
When you are using Update, there are two events that occur for each data row updated. The order of execution is as follows:
The values in the DataRow are moved to the parameter values.
The OnRowUpdating event is raised.
The command executes.
If the command is set to FirstReturnedRecord, and the first returned result is placed in the DataRow.
If there are output parameters, they are placed in the DataRow.
The OnRowUpdated event is raised.
AcceptChanges is called.
The RowUpdating event returns this output:
event args: (command=System.Data.SqlClient.SQLCommand commandType=2 status=0)
The RowUpdated event returns this output:
event args: (command=System.Data.SqlClient.SQLCommand commandType=2 recordsAffected=1 row=System.Data.DataRow status=0)
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.