• C#中对DataTable进行全连接后group by,orderby


    var result = from temp2 in
                                 (
                                     from u in users.Tables[0].AsEnumerable()
                                     join s in hpcSummary.Tables[0].AsEnumerable() on u.Field<String>("DomainUser") equals s.Field<String>("CountObj")
                                     select new
                                     {
                                         SolverName = s.Field<String>("Solver"),
                                         CountObj = s.Field<String>("CountObj"),
                                         NumJob = s.Field<Int64>("Jobs"),
                                         CpuTime = s.Field<Double>("TotalCPUTime")
                                     }
                                )
                             orderby temp2.NumJob descending
                             group temp2 by new { SolverName = temp2.SolverName } into temp3
                             select new
                             {
                                 SolverName = temp3.Key.SolverName,
                                 NumJob = temp3.Sum(t => t.NumJob),
                                 CpuTime = temp3.Sum(t => t.CpuTime)
                             };

  • 相关阅读:
    从搜索引擎角度看SEO
    关键词排名与网站优化有哪三大误区?
    真正提升关键词排名的外链应该怎样发?
    高质量外链的十大特性
    四个方面分析SEO如何提高网站的权重
    Linux(ubuntu)使用dd从iso制作win7安装u盘(读卡器一样),以及备份分区
    折腾slidingmenu
    生命游戏介绍
    21232f297a57a5a743894a0e4a801fc3
    final关键字
  • 原文地址:https://www.cnblogs.com/johnblogs/p/6958354.html
Copyright © 2020-2023  润新知