Multiple choice technology programming languages

Which two DataAdapter events fire for each row updated against a datasource?

  1. RowUpdating, AfterUpdate

  2. BeforeUpdate, RowUpdating

  3. RowUpdating, RowUpdated

  4. BeforeUpdate, AfterUpdate

  5. BeforeUpdate, RowUpdated

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The DataAdapter in ADO.NET fires two events for each row during database updates: RowUpdating (before the update action) and RowUpdated (after the update completes). These events allow developers to intervene in the update process for validation, logging, or error handling. The prefix 'Row' is consistent for both events.