All properties that share a concurrency token must be marked as such #21041
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Currently, ModificationCommand.ColumnValuePropagator.TryPropagate sets values into the state manager like this:
This sets the store-generated value when the property has one, but when it doesn't it just sets the property directly, which means the change cannot be reverted if AcceptChanges is not called. Since this would be a bug, and also because the code above uses the InternalEntityEntry directly, I changed it to:
All tests pass except
Database_concurrency_token_value_is_updated_for_all_sharing_entities
, which throws because one of the properties does not have an appropriate store-generated value slot.The text was updated successfully, but these errors were encountered: