Write it down before it's gone.
var groupByResult = from p in db.Person join s in db.School on p.SchoolID = s.SchoolID group new { p, s } by new { p.SchoolID, s.SchoolName } into grp select new { Count = grp.Count(), SchoolID = grp.Key.SchoolID, SpaceName = grp.Key.SchoolName }
Post a Comment
No comments:
Post a Comment