.Net Code
using (testEntities TestEntity = new testEntities())
{
#region linq to entities 内容练习2
#region 父子关系表查询
/*
var maxScorePerClass = from s in TestEntity.stuinfo
group s by s.classID into s1
select new
{
classid = s1.Key,
stuinfo = from s2 in s1
where s2.score == s1.Max(p => p.score)
select s2
};