OracleDataAdapter.RowUpdating Evento

Definição

Ocorre durante o Update(DataSet), após um comando ser executado com relação à fonte de dados.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 

Tipo de evento

OracleRowUpdatingEventHandler

Comentários

Ao usar o Update método, há dois eventos que ocorrem por linha de dados atualizadas.When using the Update method, there are two events that occur per data row updated. A ordem de execução é a seguinte:The order of execution is as follows:

  1. Os valores no DataRow são movidos para os valores de parâmetro.The values in the DataRow are moved to the parameter values.

  2. O OnRowUpdating evento é gerado.The OnRowUpdating event is raised.

  3. O comando é executado.The command executes.

  4. Se a UpdateRowSource Enumeração for definida como FirstReturnedRecord , o primeiro resultado retornado será colocado na DataRow.If the UpdateRowSource enumeration is set to FirstReturnedRecord, the first returned result is placed in the DataRow.

  5. Se houver parâmetros de saída, eles serão colocados na DataRow.If there are output parameters, they are placed in the DataRow.

  6. O OnRowUpdated evento é gerado.The OnRowUpdated event is raised.

  7. AcceptChanges é chamado.AcceptChanges is called.

Aplica-se a