I am using automapper to map source and destination objects. While I map them I get the below error.
Expression must resolve to top-level member. Par
You can do it that way:
// First: create mapping for the subtypes Mapper.CreateMap(); // Then: create the main mapping Mapper.CreateMap(). // chose the destination-property and map the source itself ForMember(dest => dest.Output, x => x.MapFrom(src => src));
That's my way to do that ;-)