This is the sort of thing I want to be able to do. I know you can qury linq results again, but because these results are in groups, I don't know how to. I think the best idea I can think of is to have a query to fetch everything, then do my if statement, then do another query that groups everything (so have 3 separate queries instead of 1). Any ideas on how best to do this sort of thing?
var Result =
from a in DB.Table
if(Something == 0)
{
where a.Value > 0
}
group a by a.Value into b
select new {Group = b};