I got a SQL Server table with columns ResolvedDate and ResolvedBy.
Now I want to select those two columns and count their results, which I thought I’d implement like that:
_dataContext.Activities
.Where(a => a.IsResolved && a.ResolvedBy == userId)
.Select(a => new { a.ResolvedDate, ***COUNT*** });
As you can see, the Count-Part is missing.
I want to get every activity, that has been done in this ResolvedDate and count it.
How can I implement that?
1 Answer