Suppose by RowVersion you mean a data type with a timestamp (bad name).
Use the rowversion column in all tables.
SQLServer automatically updates the column.
I have never used LINQ to SQL (for example, my SQL code), but the Rowversion column is very useful in concurrency updates.
Just use "WHERE ID = @ID AND ROWVERSION = @RV" to handle concurrent updates.
DO NOT use your second option!
pkario
source share