Home > Net > Linq multi-table LianZha with group by group, how to do
Linq multi-table LianZha with group by group, how to do
Time:04-10
StudentDataContext stu=new studentDataContext ();
This. GridView1. The DataSource=the from p in stu. Student The join g in stu. ClassInfo on p.C lassId equals right lassId Group, a new {p.N ame, right lassName} by right lassName Select new into k {class=k.K ey, name=};