-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
I created a PR #3379 for this issue.
In \AutoMapper\src\IntegrationTests\ExplicitExpansion\ExpandCollections.cs:
Change:
protected override MapperConfiguration Configuration => new MapperConfiguration(cfg =>
{
cfg.CreateMap<Category, CategoryDto>();
cfg.CreateMap<TrainingCourse, TrainingCourseDto>();
cfg.CreateMap<TrainingContent, TrainingContentDto>().ForMember(c => c.Category, o => o.ExplicitExpansion());
});to
protected override MapperConfiguration Configuration => new MapperConfiguration(cfg =>
{
cfg.CreateMap<Category, CategoryDto>();
cfg.CreateMap<TrainingCourse, TrainingCourseDto>().ForMember(c => c.Content, o => o.ExplicitExpansion());
cfg.CreateMap<TrainingContent, TrainingContentDto>().ForMember(c => c.Category, o => o.ExplicitExpansion());
});This works against the latest commit.