How to use AutoMapper .ForMember?

后端 未结 5 1291
野性不改
野性不改 2020-12-04 15:10

I am trying to set up AutoMapper to convert from Entity to DTO. I know I\'m supposed to be using .ForMember() after Mapper.CreateMap()<

5条回答
  •  既然无缘
    2020-12-04 15:28

    In the end, I believe this turned out to be some kind of incompatibility with ReSharper.

    ReSharper seems to have caused Automapper code to display incorrectly, but work just fine (even though it displays red with error messages). Uninstalling ReSharper fixed this issue completely.

提交回复
热议问题