title: Need help creating an expression tree for Where clause
body: <p>I need to create an expression tree, which I can pass along as <code>predicate</code> argument in <code>Where</code> clause to Linq To Enities query.</p>
  
  <pre><code>public static IQueryable&lt;TSource&gt; Where&lt;TSource&gt;(this IQueryable&lt;TSource&gt; source,
      Expression&lt;Func&lt;TSource, bool&gt;&gt; predicate);
  </code></pre>
  
  <p>Expression tree must be equivalent to where clause specified as below:</p>
  
  <pre><code>var query = context.Products.Select(product =&gt; 
      new { product.Name, product.Color });
  
  var arr = "Red;Black".Split(';');
  query = query.Where(obj =&gt; arr.Contains(obj.Color));
  </code></pre>