To handle optimistic concurrency in Entity Framework, the ________ attribute is used on entity properties.

  • ConcurrencyCheck
  • OptimisticConcurrency
  • Timestamp
  • Version
The correct attribute is ConcurrencyCheck. Adding this attribute to properties ensures that Entity Framework checks for concurrency conflicts when updating or deleting rows in the database, ensuring data integrity in a multi-user environment.
Add your answer
Loading...

Leave a comment

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