I found a method in AutoMapper: IMappingExpression.ConstructUsingServiceLocator().
When should I use this method and what are the differences between it and ConstructUsing?
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 is used to configure AutoMapper to use certain constructor to instantiate a class.
The best way to learn AutoMapper is to look into the unit tests.