Set current/original values directly from dictionary #6368
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
Currently original/current values can be set from an object (entity or DTO) or from another PropertyValues object (e.g. set OriginalValues to CurrentValues).
@AndriySvyryd Suggested it would be good to be able to set from an
IDictionary<string, object>
.This is the code you would write today to do this:
Or if some properties may not be in the dictionary (e.g. shadow properties):
With the suggested API the code would be:
The text was updated successfully, but these errors were encountered: