ProjectTo issue #3669
amilcar-dev
started this conversation in
NA
ProjectTo issue
#3669
Replies: 1 comment
-
Run that as a LINQ statement, without AM. You should get the same result. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting the error "Argument types do not match" when using ProjectTo method to a dictionary. Although, when I use the same profile using the Map method it works fine. Any help?
Thanks
CreateMap<Voucher, VoucherDto>()
.ForMember(x => x.Descriptions, options => options.MapFrom(x =>
x.Product.Translations.Select(x =>
new KeyValuePair<Language, string>(x.Language, x.Description))));
Beta Was this translation helpful? Give feedback.
All reactions