我需要转换 Linq 查询的帮助。我试过在线转换工具,但没有运气......查询是这样的:
var orderedData =(from d in collezione
group d by d.Gruppo into g
orderby g.Key
from d in g
select new[] {d}.Union(g.Where(c => c.Owner == d.Comp)) into withChildren
from wc in withChildren
orderby wc.Pos
select wc).Distinct();