When working with a Dataset, what does the AcceptChanges method do?

  • Commits all changes made to the dataset since it was loaded or since the last AcceptChanges call
  • Rolls back all changes made to the dataset since it was loaded or since the last AcceptChanges call
  • Marks all rows in the dataset as deleted
  • Adds a new row to the dataset
The AcceptChanges method in ADO.NET commits all changes made to the dataset since it was loaded or since the last AcceptChanges call. This means that any changes to the data become permanent and cannot be rolled back. The other options do not accurately describe the purpose of the AcceptChanges method.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *