groupby not allow include
- by user276640
i use such code
_dataContext.Invoice.Include("Projects").Where(i => i.Paid == true).GroupBy(i => i.Projects.Id).OrderBy(grouping => grouping.Max(i => i.Projects.Id)).Take(3);
but object Projects is null, but another code is working
_dataContext.Invoice.Include("Projects").OrderBy(i => i.DateCreated).ToList();
what the problem?