How would i do the following in Linq. Here is the SQL
Select duesyearmontn, sum(duesamount) as duesrate
from duesowed
where socsecno = "999-99-9999' and duescatcd = 'D'
group by duesyearmonth
having sum(duesamount) <> 0
order by duesyearmonth desc
this is what i have so far
var duesOwedQuery = _manager.DuesOweds
.Where(d => d.SocSecNo == member.SocSecNo && d.DuesCatCd.StartsWith("D"))
.OrderByDescending(d => d.DuesYearMonth);
var duesOweds1 = duesOwedQuery.Execute<DuesOwed>();
how do i handle the group by and having clause?
Bill