I got a SQL Server table with columns ResolvedDate and ResolvedBy.
ResolvedDate
ResolvedBy
Now I want to select those two columns and count their results, which I
from a in dataContext.Activities where a.IsResolved && a.ResolvedBy == userId group a by a.ResolvedDate into g select new {ResolvedOn=g.Key, NumberResolved= g.Count()}