Is there a way to configure multiple classes by the same mapping in C# AutoMapper library?

Viewed 30

If you configure AutoMapper by generic method, then the "ForMember"->"MapFrom" configuration doesn't set specified property during mapping. The property's value remains null.

Here is a link to a unit test where the issue is reproducible. The test failed on line 63 due to Id is null.

AutoMapper version: 11.0.1

Thank you for any suggesttion

0 Answers
Related