Automapper, generics, dto funtimes

喜欢而已 提交于 2019-12-04 13:33:51

got it!!

dont call createmap passing the generic lists!

MethodInfo createMap = createMapInfo.MakeGenericMethod(new Type[] { typeof(MainInvoiceDataSums), generetedType });

sorted!!

:)

w://

Jimmy Bogard

Why not use the non-generic version of Map?

Mapper.Map(r, typeof(IList<MainInvoiceDataSums>), 
                       typeof(IList<>).MakeGenericType(new [] { generatedType });
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!