I'm trying to load multiple grandchild collections to my object.
using (var context = GetContext())
{
return await context.Collection.Where(c => c.Id == id)
.Include(a => a.Child.Select(b => b.GrandChildCollection1))
.Include(a => a.Child.Select(b => b.GrandChildCollection2))
.FirstOrDefaultAsync();
}
According to EF eager load multiple child child collections and https://stackoverflow.com/a/44604899/5903172 my code should work but I'm getting the following error:
"Unknown column 'Extent1.Id' in 'on clause'"
This guy seem to have had the same issue MySQL Unknown column 'Extent1.ID' in 'on clause' with EF6
Anybody got any ideas? Thanks!