Entity Framework Timestamp Data Annotation

The TimeStamp attribute is used to creates a column with timestamp data type in the SQL Server database.

In the following example, the Timestamp attribute is applied to the RowVersion property which is a byte array.

public class Book < public int BookId < get; set; > public string Title < get; set; > [Timestamp] public byte[] RowVersion < get; set; > >

Last updated: 2023-02-25
Author: ZZZ Projects