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")
Can't take any credit - links in this question to Dynamic Linq and how to do it without:
Dynamic LINQ OrderBy on IEnumerable<T>
精彩评论