I have the following grouping type after a big query:
IQueryable<IGrouping<Type1, IGrouping<Type2, Type3>> result;
var executedQuery = result
.Include(a => a.Select(b => b.Select(c => c.Type3Property)))
.ToList();
I've tried with SelectMany too but I always get the following error:
An exception of type 'System.ArgumentException' occurred in EntityFramework.dll but was not handled in user code
Additional information: The Include path expression must refer to a navigation property defined on the type. Use dotted paths for reference navigation properties and the Select operator for collection navigation properties.
I can't use Include in the query because it doesn't work before the grouping.
When I searched for this, everyone seems to get Select to work just fine with collections, what is wrong in my case?