文章内容
2016/11/13 14:22:13,作 者: 黄兵
C# 引用AutoMapper提示Mapper类不具有CreateMap方法
解决方法:
https://github.com/AutoMapper/AutoMapper/wiki/Getting-started
这个页面的How do I use中讲了用法
AutoMapper.Mapper.Initialize(x => x.CreateMap(_sourceType, _destinationType));
https://github.com/AutoMapper/AutoMapper/wiki/Getting-started
这个页面的How do I use中讲了用法
AutoMapper.Mapper.Initialize(x => x.CreateMap(_sourceType, _destinationType));
评论列表