title: How to use a string variable in the linq where clause?
body: <p>I am trying to make a LINQ statement where the where clause is a string variable. For example:</p>
  
  <pre><code>string whereClause = "(Code = '12') AND (Name = 'a')" ;
  var referreds = from r in _db.Referreds where whereClause;
  </code></pre>
  
  <p>Edit: I have a model with 30 property, i want to created search for this model. I want to select items where user insert value for every property.</p>
  
  <p>For example, where user insert value for Code&amp;Name&amp;Family serach with this propertie, and where user insert value for Gender,Name,Study,Degree serach with this.</p>
  
  <p>which is Better solution for this?</p>