I have this situation:
select max(id) from OTX group by AccNo
I want to convert it into a LINQ query but is not working. I tried this but says that 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;