title: Can I find such a intelligent function to deal with all query conditions in database
body: <p>If we want to query something in database, we can use where conditions, such as select * from user where id=1;
  I can define a function :</p>
  
  <pre class="lang-cs prettyprint-override"><code>bool query(int id,string tableName)
  {
    database.id.equalTo(id);
  }
  </code></pre>
  
  <p>if I want to find the user less than 18(age) years old:</p>
  
  <pre><code>bool query(int age,string tableName)
  {
    database.age.lessthan(age);
  }
  </code></pre>
  
  <p>so for two conditions we have two function relative.</p>
  
  <p>Can I find such a way ,that </p>
  
  <pre><code>bool query(string condition)
  {
  database.find(condition);
  //it will deal with the condition intelligent use the required function.
  }
  </code></pre>
  
  <p>I know database can read sql syntax. But I want to find the function that can provide developer a convenient way without writing the sql syntax, just pass the condition sentence that: age&lt;18, id=1. And the function return the result1.When enter arg>19 the function return the result2.
  I am not sure if I have mention my problem clearly. Seeking for help!</p>