I need help for convert a Linq Query. I’ve tried with on-line the conversion tools but no luck…
The query is this:
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();
I’m not sure if this is what you need(it’s a random shot since your question is not complete):