开发者

Convert a string to Linq.Expressions or use a string as Selector?

开发者 https://www.devze.com 2022-12-29 04:39 出处:网络
Well I have a string now that has the expression value to be evaluated..it has say value expr => expr.FieldName ... so I开发者_如何学运维 want to use this string as Linq. Expression or any other wa

Well I have a string now that has the expression value to be evaluated..it has say value expr => expr.FieldName ... so I开发者_如何学运维 want to use this string as Linq. Expression or any other way to query...like Select(str).

Please help me out.


While I haven't personally used it, the Dynamic Linq Library might be useful for you. Check out ScottGu's post: http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

0

精彩评论

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