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
When mapping from DerivedBase to BaseDto i expect it to map to the DerivedDtoBase, instead i get the error:
Error while compiling source=DerivedBase
destination=DtoBase
type=Map
Cannot convert immutable type, please consider using 'MapWith' or 'ConstructUsing' method to create mapping.
Is there a way to configure the mapping logic to automatically map to the corresponding derived Dto class and vice versa since this is a scenario that is common on our platform?
Or do i need to specifically define the config as:
Suppose I have 2 base classes with derived classes as:
With the config:
When mapping from DerivedBase to BaseDto i expect it to map to the DerivedDtoBase, instead i get the error:
Is there a way to configure the mapping logic to automatically map to the corresponding derived Dto class and vice versa since this is a scenario that is common on our platform?
Or do i need to specifically define the config as:
Which works but is quite a lot of custom configuration considering the amount of times we perform this type of derived mapping.
The text was updated successfully, but these errors were encountered: