We are using the IsVersion
property on the ColumnAttribute
on a property in a LINQ to SQL class for optimistic concurrency checks. What should the column definition be in the database?
Currently we are using
version_number int NOT NULL IDENTITY (1, 1)
Do we need Identity? Can we get LINQ to SQL to update the version number for us? The only issue with Identity is that every row has a different number. We'd like to see the number increment by 1 when the row is updated.