I am trying to force a ChangeConflictException by altering records in two different browsers. This has worked for me in the past. But now it just wont throw the exception.
Last one in is winning.
I have checked the column properties of the entity I am updating and each column is set to always check.
Is there anything I can look for?
I haven’t extended this data context or done any modifications to any of the properties.
Thanks.
Edit
This is an ASP.net application.
Are you sure this is not what is happening:
Key point here is that the entity is reloaded on postback (HTTP = stateless) and in 6) you are actually loading changes made by 4) and overwriting them. Linq2Sql does not ‘stamp’ your form you would have to do this manually.
You write in the comments that you have another app that works. If that is a Windows app, then the situation is completely different, since the entity is then most likely not reloaded again.