I have a Expression Type variable. It has an expression to filter data. For example, The expression lets SQL get data where LOCATION is 'KOR'.
{it => (it.LOCATION == "KOR")}
This expression will be the WHERE clause in a SQL statement. Converting lambda expression to Sql queries looks complicated because there are many different expressions.
How can I achieve this purpose without starting from scratch? Are there any nice libraries?
Added....
I can get a string of a lambda expression by invoking the ToString() method.
"it => (((it.LOCATION == \"KOR\") OrElse (it.LOCATION == \"FRA\")) AndAlso (it.Value > 30000))"