How to use Automapper for call methods for set properties? #4008
-
Hello. I am have code var payment = new Payment(Guid.NewGuid()) i am want to tuning automapper for calling var payment = _mapper.Map(request); |
Beta Was this translation helpful? Give feedback.
Answered by
lbargaoanu
Jun 28, 2022
Replies: 1 comment
-
AM doesn't work that way. Destination values are set using properties, fields or constructors (public or not). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lbargaoanu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AM doesn't work that way. Destination values are set using properties, fields or constructors (public or not).