title: LINQ to Entities Contains Query
body: <p>I'm trying to use Contains() in a simple query but it is failing, with the error :</p>
  
  <p>Unable to create a constant value of type 'NewsletterApp.Models.NewsletterUser'. Only primitive types ('such as Int32, String, and Guid') are supported in this context.</p>
  
  <p>Edit  The intellisense actually directs me to use the NewsletterUser  in Contains() -'(NewsletterUser item)'</p>
  
  <p>I read that there were issues searching for an object using Contains() using EF with .NET 3.5, but I am using EF4.2 (also tried 4.1) with .NET 4.0 . 
  Code is below:</p>
  
  <pre><code>        var db = new MyContext(); 
  
          var newsletterUser = db.NewsletterUsers.Find(UserID);
          var subscriberList = db.Subscribers
                .Where(x =&gt; x.NewsletterList.ListOwner.NewsletterUsers.Contains(newsletterUser))
                .ToList();
  </code></pre>