S
shapper
Hello,
I am using a third party assembly method as follows:
CreateMap<DocumentCreate, Document>()
.ForMember(d => d.Level.Id, o => o.MapFrom(s => s.Level));
And I get the following error:
Exception Details: System.ArgumentException: Expression 'd => Convert
(d.Level.Id)' must resolve to top-level member. Parameter name:
lambdaExpression
Is this a problem in my code? Am I missing something? (My code
compiles)
Thanks,
Miguel
I am using a third party assembly method as follows:
CreateMap<DocumentCreate, Document>()
.ForMember(d => d.Level.Id, o => o.MapFrom(s => s.Level));
And I get the following error:
Exception Details: System.ArgumentException: Expression 'd => Convert
(d.Level.Id)' must resolve to top-level member. Parameter name:
lambdaExpression
Is this a problem in my code? Am I missing something? (My code
compiles)
Thanks,
Miguel