Replies: 1 comment
-
The usage of external mappers in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some classes and interfaces:
I want to unflatten these into:
So I created a user-defined mapping for
IExternalRequest
=>InternalUser
:and then another for
SomeExternalRequest
=>SomeInternalRequest
:Unfortunately this doesn't work - Mapperly complains that "SomeInternalRequest has no accessible constructor with mappable arguments", as well as that
UserId
andUserName
are not mapped from the source andUser
is not found on the source.I then tried adding
MapPropertyFromSourceAttribute
:but that complains that "The referenced mapping named MapToUser was not found".
Am I doing something wrong, or is this not a supported scenario by Mapperly?
Beta Was this translation helpful? Give feedback.
All reactions