Is it possible to reuse a mapper in other mappers automagically? #1542
-
Example I've a mapper to convert Customer to CustomerDto:-
Now I want this to be reused when another object's mapper requires to convert Customer to CustomerLite. Eg when converting Invoice to InvoiceDetailResponse, I want invoice.Customer to be translated to CustomerLite using already declared method above.
|
Beta Was this translation helpful? Give feedback.
Answered by
latonz
Oct 19, 2024
Replies: 1 comment
-
Have you tried using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
salmanbabri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried using
UseStaticMapper
/UseMapper
? See docs.