I use Entity Framework Model-First, I want to define a column for concurrency checking. One of my property named Version, I set its Concurrency Mode to 'Fixed', type to 'Binary', 'StoreGeneratedPattern' to 'Computed'. I want the column like timestamp, every time I insert or update, the database auto-generated a value for the record.
But, when I insert records, the Version property is not nullable, so, if I don't assign it a value, the SaveChanges will not work. How can I solve it? Is my solution of creating concurrency property correct?
Thanks in advance!