Hi can someone help me convert this tsql statement into c# linq2sql?
select [series] from table group by [series] order by max([date]) desc
This is what i have so far – the list is not in correct order..
var x = from c in db.Table
orderby c.Date descending
group c by c.Series into d
select d.Key;
Your LINQ
orderbyclause isn’t doing the same thing as your SQL one. Here, this should fix it: