8,492
社区成员
发帖
与我相关
我的任务
分享var query1 = from x in Viewstscore group x bu x.stu_id into g where g.Count() > 1 select g;
var query = query1.First();
foreach (var i in query1.Skip(1))
{
query = query.Union(i);
}var query = Viewstscore.Where(y => (from x in Viewstscore group x by x.stu_id into g select g.Key).Where(z => z.Count() > 1).Contains(y)).Select(x => x);var query = from x in Viewstscore group x bu x.stu_id into g where g.Count > 1 select g;
foreach (var i in query)
{
g.ToList().ForEach(x => Console.Writeline(x.stu_id));
}var query = Viewstscore.Where(y => (from x in Viewstscore group x by x.stu_id into g select g.Key).Contains(y)).Select(x => x);