0

I am very new to LINQ and have a class method, which when called, returns a DbDataReader object. How would I sort this dynamically using a LINQ query expression where the sort expression is provided as a string (e.g. "LastName DESC")

Alfero Chingono
  • 2,663
  • 3
  • 33
  • 54

1 Answers1

0

Can't take any credit - links in this question to Dynamic Linq and how to do it without:

Dynamic LINQ OrderBy on IEnumerable<T>

Community
  • 1
  • 1
Murph
  • 9,985
  • 2
  • 26
  • 41