title: Dapper IPredicate to linq conversion
body: <p>In my application I have some clasess which implement one common interface, let's called it IValidator.
  Every class which implement such interface returns PredicateGroup object. So for test purpose, I 
  decided to get all data from specific view on database and after that on the returned collection(IEnumerable)
  do a quick filtration via linq where(without do many calls to database with diffrent predicates). </p>
  
  <p>Does dapper support such conversion from IPredicate/PredicateGroup to Func&lt;> or there is another faster/better solution?</p>
  
  <p>Over here is a little presentation what I want to achieve:</p>
  
  <pre><code>        IEnumerable&lt;Products&gt; products = null;
          using (var cn = new SqlConnection("connectionstring"))
          {
              //Get all elemnts from database(using only one call)
              products = cn.GetList&lt;Products&gt;(Predicates.Field&lt;Products&gt;(f =&gt; f.Discontinued, Operator.Eq, true));
          }
  
          // class which implement IValidator and returns predicate group
          List&lt;IPredicate&gt; computerPredicates = new List&lt;IPredicate&gt;
          {
              Predicates.Field&lt;Products&gt;(f =&gt; f.ProductName, Operator.Eq, "Computer"),
              Predicates.Field&lt;Products&gt;(f =&gt; f.Price, Operator.Eq, 1200)
          };
          var computerPredicatesGroup = new PredicateGroup {Predicates = computerPredicates };
  
          // class which implement IValidator and returns predicate group
          List&lt;IPredicate&gt; phonePredicates = new List&lt;IPredicate&gt;
          {
              Predicates.Field&lt;Products&gt;(f =&gt; f.ProductName, Operator.Eq, "Phone"),
              Predicates.Field&lt;Products&gt;(f =&gt; f.Price, Operator.Eq, 400)
          };
          var phonePredicatesGroup = new PredicateGroup { Predicates = phonePredicates };
  
          var computers = products.Where( /* computerPredicates */); //??
          var phones = products.Where( /* phonePredicatesGroup */); //??
  </code></pre>