title: How to transform lambda expressions to Sql queries on the fly?
body: <p>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'.</p>
  
  <ul>
  <li><code>{it =&gt; (it.LOCATION == "KOR")}</code></li>
  </ul>
  
  <p>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.</p>
  
  <p>How can I achieve this purpose without starting from scratch?
  Are there any nice libraries?</p>
  
  <p><em><strong>Added....</em></strong></p>
  
  <p>I can get a string of a lambda expression by invoking the ToString() method.</p>
  
  <ul>
  <li><code>"it =&gt; (((it.LOCATION == \"KOR\") OrElse (it.LOCATION == \"FRA\")) AndAlso (it.Value &gt; 30000))"</code></li>
  </ul>