It’s the first time that I use EmitMapper.
I have a list of object ex: Customer and I would like to map this list in a ienumerable of CustomerDTO how can I do that?
Tnx
It’s the first time that I use EmitMapper. I have a list of object
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s straightforward if you have a list and want to convert it to list of DTOs:
The preblem is when the list is in another object, for example User and UserDTO:
It seems that EmitMapper does not support conversion from List to Enumerable. A way to support it would be: