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
If you're trying to count each item by date, you'd need to use GroupBy:
GroupBy
var countsByDate = _dateContext.Activities .Where(a => a.IsResolved && a.ResolvedBy == userId) .GroupBy(a => a.ResolvedDate) .Select(g => new {ResolvedDate = g.Key, Count = g.Count() });