You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExtraProperties of an entity is a dictionary that contains some additional properties related to the entity.
If you map such an entity to a DTO (or vice verse), the values in the extra properties will not be mapped as you can expect. You can manually define AutoMapper mapping configuration.
Since this is pretty standard, we can define some extension methods & conventions to make this easier.
The text was updated successfully, but these errors were encountered:
No, it doesn't. It maps Obj1.ExtraProperties to Obj2.ExtraProperties (copy the items inside the dictionary).
This issue is about copying an item in the dictionary to a regular property of another object. Obj1.ExtraProperties["Name"] to Obj2.Name.
As you know we use ExtensibleObjectMapper for mapping SrcObj.ExtraProperties to DestObj.ExtraProperties. This class contains methods working with two objects implement IHasExtraProperties interface.
Below possible steps to help us having this feature.
1-Make implementing IHasExtraProperties optional for destination objects in ExtensibleObjectMapper or create a new class specially for this feature(we always should apply required extensible object logic for source)
2- Use Apb's json serializer for mapping ExtraProperties of source to destination's properties like here.(this is just a logic, sure we can modify it)
ExtraProperties of an entity is a dictionary that contains some additional properties related to the entity.
If you map such an entity to a DTO (or vice verse), the values in the extra properties will not be mapped as you can expect. You can manually define AutoMapper mapping configuration.
Since this is pretty standard, we can define some extension methods & conventions to make this easier.
The text was updated successfully, but these errors were encountered: