I am using Entity Framework 5 code first and ASP.NET MVC 3.
I am struggling to get a child object\'s child object to populate. Below are m
With EF Core in .NET Core you can use the keyword ThenInclude :
return DatabaseContext.Applications
.Include(a => a.Children).ThenInclude(c => c.ChildRelationshipType);
Include childs from childrens collection :
return DatabaseContext.Applications
.Include(a => a.Childrens).ThenInclude(cs => cs.ChildRelationshipType1)
.Include(a => a.Childrens).ThenInclude(cs => cs.ChildRelationshipType2);