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 I have an object which derives from ParentEntity and map it too ParentModel I expect it to be appropriately typed with the Include options, i.e. if the entity is ChildEntityA then the result should be ChildModelA and same for ChildEntityB & ChildModelB
Can see in my example this works as expected when you're mapping List<T> -> List<U> but not for the corresponding T -> U
The text was updated successfully, but these errors were encountered:
I've managed to isolate and replicate my issue in a couple of unit tests, can see here:
https://github.com/MitchellW-DWL/MapsterIssue
But I can also see this case should be covered by:
https://github.com/MapsterMapper/Mapster/blob/master/src/Mapster.Tests/WhenIncludeDerivedClasses.cs
When I have an object which derives from
ParentEntity
and map it tooParentModel
I expect it to be appropriately typed with theInclude
options, i.e. if the entity isChildEntityA
then the result should beChildModelA
and same forChildEntityB
&ChildModelB
Can see in my example this works as expected when you're mapping
List<T>
->List<U>
but not for the correspondingT
->U
The text was updated successfully, but these errors were encountered: