Getting an exception with AutoMapper

前端 未结 2 1590
孤独总比滥情好
孤独总比滥情好 2021-01-04 03:48

I\'m unit testing a method which uses automapper to map a class from my domain to a linq to sql class. Roughly, the classes and mapping are below (The SupplierEligibilityAl

2条回答
  •  长发绾君心
    2021-01-04 04:25

    It appears you are specifying the wrong type on your call to Mapper.CreateMap

    Try doing something like the following:

    Mapper.CreateMap()
    

提交回复
热议问题