title: Linq to entities : Unions + Distinct
body: <p>I don't know how I can do several union with a distinct. </p>
  
  <p>When I use .Distinct with an IEqualityComparer an exception in threw :</p>
  
  <blockquote>
    <p>LINQ to Entities does not recognize the method 'System.Linq.IQueryable'</p>
  </blockquote>
  
  <p>My code is </p>
  
  <pre><code>var union = query.Union(query1).Union(query2);
  union = union.Distinct(new EqualityComparerTransaction());
  </code></pre>