Replies: 1 comment
-
|
Mapperly requires all mappings to be known at compile time in order to generate the corresponding code. Therefore, this approach does not work. You need to define all your mappings in the Mapper declaration. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm investigating migrating away from Automapper to Mapperly and have run into a potential issue.
In several places, we use Automapper's ability to dynamically map between objects at runtime with the following code:
We have a large number of simple entity -> dto mappings that use this, so creating individual mappers will be quite difficult and time consuming. Is there an equivalent to this in Mapperly? I'm aware of the generic mapping but that seems to still require an actual mapping method.
Beta Was this translation helpful? Give feedback.
All reactions