C# ling to sql 取多条记录最大时间
程序员文章站
2022-05-07 17:01:45
var _setList = (from f in _postgreDbContext.settlements group f by ( new { f.settlement_code })into g select new { deal_time = g.Max(m => m.deal_time)... ......
var _setlist = (from f in _postgredbcontext.settlements group f by ( new { f.settlement_code })into g select new { deal_time = g.max(m => m.deal_time), g.key.settlement_code }).asnotracking().tolist();
上一篇: Java开发小技巧(五):HttpClient工具类
下一篇: 孕妇吃什么补气血?这些食物很有效!