Here is my request -
var data = Goaldata.GroupBy(c => c.GoalId).ToList();
This returns a grouping object, and I want an Iqueryable object that I can directly query to get the data, while in this case I need to loop through foreach () and then get the data. Is there any other way to group by LINQ, which returns directly as an Iqueryable or List, similar to what happens for order in LINQ.
source share