title: Dynamic Linq queries for multiple runtime filters
body: <p>I have a winforms app that basically loads a bunch of data from a database using entity framework and displays it on a gridview.</p>
  
  <p>For this scenario, consider the entity bound to the gridview to be this one:</p>
  
  <pre><code>public class Person
  {
      public string name;
      public string sex;
      public int age;
  }
  </code></pre>
  
  <p>I'd like to give the user the option to filter the results on the gridview by using a series of filters on which he could select the column he wants to filter (age, sex, name), the operator (greater than, equal, contains, etc.) and the value. </p>
  
  <p>The filter class would be something like this:</p>
  
  <pre><code>public class filter
  {
      public string column;
      public string operator;
      public string value;
  }
  </code></pre>
  
  <p>My question is: how can i apply those filters to the data being displayed on the gridview by using dynamically created linq queries?</p>