开发者

Dynamically sorting a DbDataReader using LINQ

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>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜