Data Annotations

Data Annotations Timestamp attribute in Entity Framework Code First
Entity Framework

Timestamp Attribute in Entity Framework

Using the Timestamp attribute in Entity Framework is one of the ways to handle the Concurrency issues. The Concurrency issue arises when multiple users attempt to update/delete the same row at the same time. We can handle this issue either using the Timestamp column or ConcurrencyCheck attribute on the property. Timestamp columns are the preferred way of using for concurrency check.

Scroll to Top