Automapper是一个很好的工具。但我有一些问题。
在调试项目时,它工作正常,所有映射操作都成功。但在发布模式下,它会抛出具有完全相同数据的映射异常。
可能是什么问题?
我的环境是Win7,32位,VS 2010。项目适用于 .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.
....
Run Code Online (Sandbox Code Playgroud)