When a transaction is rolled back in Entity Framework, the state of the entities involved is ________.

  • Reverted
  • Discarded
  • Unchanged
  • Rolled back
The correct option is "Discarded". When a transaction is rolled back in Entity Framework, any changes made to the entities involved in the transaction are discarded. This means that the entities return to their previous state before the transaction began. Any modifications, additions, or deletions made within the transaction scope are undone, and the entities revert to their original state. This ensures data consistency and integrity, maintaining the database in a consistent state.
Add your answer
Loading...

Leave a comment

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