怎么将SQL转换成LINQ语句,语句如上

如题所述

var q= from t in table group t by t.document into g select new{ g.Key, P1=g.Max(p=>p.P1), P2=g.Max(p=>p.P2) } //手写的,请在工具里检查一下
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答