Timestamp/IsConcurrencyToken causes invalid UPDATE if no data modified (SQLServer) #4814
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
I'm attaching a sample program causing UPDATE to fail if:
The problem is that setting the rowversion fakes EF into thinking there is something to update, but since no property has really changed and rowversion is not saved (it is DB generated), an UPDATE with no fields to update is generated:
Notice the missing fields between SET and OUTPUT.
Sample code follows. Please check the last lines where the entity is updated.
The text was updated successfully, but these errors were encountered: