var consolidatedChildren = from c in bla group c by new { c.sreSif, c.sreSerija, } into gcs from g in gcs group g by new { g.sreIsplatio } into gcse select new { srecka= gcs.Key.sreSif, serija = gcs.Key.sreSerija, opBroj = gcse.Key.sreIsplatio, sreckeTemp = gcse.ToList(), }; foreach (var c in consolidatedChildren) { foreach (var isp in c.sreckeTemp) { List<string>IsplatniBrojevi= new List<string>(); IsplatniBrojevi.Add(isp.sreIspBroj); } }
select new { srecka= gcs.Key.sreSif, serija = gcs.Key.sreSerija,