我有这种情况:
select max(id) from OTX group by AccNo
我想将其转换为 LINQ 查询但不工作。我试过这个,但说 Message = "The member 'XX' has no supported translation to SQL.":
var result = from otx in datacTx.OTX
group otxCf by otxCf.AccNo
into Client
select Client.Max().ID;