Automapper 是一个很好的工具。但是我遇到了一些问题。
在调试项目时,它能够正常工作,所有的映射操作都成功了。但是在发布模式下,使用完全相同的数据就会抛出 mappingexception 异常。
可能的问题是什么?
我的环境是 Win7,32 位,VS2010。项目使用的是 .net 4.0 版本。
Mapper.CreateMap<V_Person_Details,Person>();
Mapper.Map(curr_V_Person, cur_Person); /// exception throws here in just release mode , not in debug mode
///Trying to map System.String to System.nullable .... Destination property SSS_ID : exception of the Automapper.AutomapperMappingException was thrown.
....
mapping exception
是什么意思? - Tigran