2014-01-25 28 views

回答

4

可以使用BeforeMap事件:

Mapper.CreateMap<SourceType, DestinationType>().BeforeMap((src, dst) => 
{ 
    SomeStaticLogger.DebugFormat("Mapping stuff from {0} to {1}", src, dst); 
}); 
相關問題