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

Well, now I have a string that has the value of the expression to be evaluated .. it has the value expr => expr.FieldName ... so I want to use this string as Linq. An expression or any other way to query ... e.g. Select(str) .
Please help me.

+3
c # expression linq
source share
1 answer

Although I have not used it personally, the Dynamic Linq library may be useful for you. Check ScottGu post: http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

+2
source share

All Articles