title: Multiple search criteria in a repository
body: <p>I have a question for how to implement multiple criteria for a repository pattern in ASP.net MVC. Imagine a POCO class in EF4</p>
  
  <pre><code>public class people
  { String Name {get;set;}
  float Height {get;set;}
  float Weight {get;set;}
  int age {get;set;}
  ....
  }
  </code></pre>
  
  <p>If I build up a repository as <code>IPeopleRepository</code>, what kind of methods should I implement for a multiple criteria search (e.g Age > 30, Height >80). Those criteria would be related to the properties in the class and some of the input could be null. Of course I can write a method like   </p>
  
  <pre>People SearchPeople (int age, float height.....) </pre>
  
  <p>but I have to judge if every variable would be null and append onto the search queries..  </p>
  
  <p>So do you have any good ideas on how to implement this function in EF?</p>