Linq 2 SQL Grouping Question
Posted
by Jack Marchetti
on Stack Overflow
See other posts from Stack Overflow
or by Jack Marchetti
Published on 2010-06-03T19:51:45Z
Indexed on
2010/06/03
20:04 UTC
Read the original article
Hit count: 223
linq-to-sql
|group-by
var groups = from p in dc.Pool
join pm in dc.PoolMembers on p.ID equals pm.PoolID
group p by p.Group into grp
select new { grp.ID };
This isn't working. Basically I want to do the grouping, and then select certain columns, but when I do select new { grp. }
I get no intellisense, so I'm obviously doing something wrong.
Any ideas?
© Stack Overflow or respective owner