Using the instance version of CreateMap and Map with a WCF service?

后端 未结 5 365
青春惊慌失措
青春惊慌失措 2020-12-08 22:56

Been having some real issues with automapper. I think I have found the solution but unsure of how to implement it.

basically I am using a custom mapping with Resolve

5条回答
  •  长情又很酷
    2020-12-08 23:36

    Have you looked at using the Map call that takes in the destination object?

    var bar = new Bar("Custom each call");

    Mapper.Map(foo, bar);

提交回复
热议问题