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: 220

Filed under:
|
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

Related posts about linq-to-sql

Related posts about group-by