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.
Loading...
Related Quiz
- The ___________ method of a Dataset saves changes made to its data back to the database.
- What are the advantages of using connection pooling in ADO.NET?
- Which of the following is true about ADO.NET Entity Framework?
- Parameterized queries help mitigate the risk of ________ attacks.
- What does EF stand for in the context of ADO.NET Entity Framework?