AutoMapper.Mapper does not contain definition for CreateMap

后端 未结 4 730
一生所求
一生所求 2020-12-07 11:02

This might be a basic question but wondering I am not getting AutoMapper.Mapper.CreateMap method.

Am I using wrong AutoMapper reference/package? Thanks

4条回答
  •  甜味超标
    2020-12-07 11:23

    I see your class didn't inherit from AutoMapper.Profile

    I did this and worked for me

    public class AutoMapperConfig: AutoMapper.Profile
    

提交回复
热议问题