ASP.NET MVC Concurrency with RowVersion in Edit Action?

What you are doing is tricky, but can be made to work. Let's presume your timestamp field is called ConcurrencyToken . Obviously, you must include this value in the View and submit it with your form.

But you can't simply assign that to the value to thisIssue. ConcurrencyToken in the POST because the EF will remember both the "old" value (the value you fetched from the DB with your call to Single() as well as the "new" value (from your form) and use the "old" value in the WHERE clause. So you need to lie to the EF and assign the correct value.

Try this.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions