v11 Upgrade Bug - IMemberConfigurationExpression Ignore()

27 views
Skip to first unread message

Jaco De Villiers

unread,
Jun 6, 2022, 4:10:25 AMJun 6
to AutoMapper-users
After upgrading from v8.1.1 the below code throws a run time Exception on the `.Ignore()`

ASPNET API DOTNET 6 Project

"missingmethodexception IMemberConfigurationExpression Ignore()"

public class ReadingProfile : Profile
  {
    public ReadingProfile()
    {
      CreateMap<ReadingUploadModel, Reading>()
        .ForMember(
          x => x.Id,
          opt => opt.Ignore())
        .ForMember(
          x => x.CreatedAt,
          opt => opt.Ignore())
        .ForMember(
          x => x.CreatedBy,
          opt => opt.Ignore());
    }
  }



Reply all
Reply to author
Forward
0 new messages