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

1

3

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.

Diantha answered 6/5, 2010 at 18:21 Comment(0)
W
2

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

Windywindzer answered 6/5, 2010 at 18:29 Comment(1)
I have tried Scott Gu's Dynamic Library before and didnt work for me some issue with my side...I need to fix..So I was looking for something else. But thanks for your reply...Diantha

© 2022 - 2024 — McMap. All rights reserved.