title: Multiple where conditions in EF
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11194/conditional-linq-queries">Conditional Linq Queries</a>  </p>
  </blockquote>
  
  
  
  <p>Using Entity Framework 4.0</p>
  
  <p>I have a search condition like this</p>
  
  <p><img src="https://i.stack.imgur.com/lwAh1.png" alt="enter image description here"></p>
  
  <p>There are four fields that allow the users to filter their search. The conditions are all <code>AND</code>. The result has to omit the corresponding filter if the textbox value is <code>String.Empty</code> or the dropdownlist value is <strong>All</strong>. Could do this in a Stored Procedure but I am unable to mimic that at all in a Linq2SQL/ Entity Framework scenario. </p>
  
  <p>My question is this, how to omit  IEnumerable.Where in the Linq according to some entered values?</p>