每当我将Dish类包含到restaurant类中时,都会发生Missing type map configuration or unsupported mapping异常。但是,当我不包含dish类时,一切工作正常。如何才能在不发生此错误的情况下包含dish类?mRestaurantMapper.Map(result);
我写了很多描述,但我想画一幅画会使我的问题比文字更清楚。Mapper.CreateMap<GenericStory, GenericStoryDisplayViewModel>().ForMember(StoryWriting.Web.Models.GenericStory使用StoryWriting.Web.Models.GenericStory到StoryWriting.Web.Models.GenericStory目标属性的映射配置: S