Answers for "order by 2 properties linq"

1

linq order by descending multiple fields

items.OrderByDescending(y => y.Year).ThenByDescending(m => m.Month);
Posted by: Guest on September-10-2020
0

linq dynamic order by descending

myDataSource.OrderBy(columnName + " descending");
Posted by: Guest on December-15-2020

Browse Popular Code Answers by Language