title: Using a List in a where clause in Entity Framework
body: <p>I am trying to retrieve document id's over a one-to-many table. I want to use a List in the where clause to find all id's that are connected with every element in the list.</p>
  
  <pre><code>List&lt;int&gt; docIds = (from d in doc
                        where _tags.Contains(d.Tags)
                        select d.id).ToList&lt;int&gt;();
  </code></pre>
  
  <p>I know that the contains must be incorrect but I can't work it out. If I try a foreach I can't  work out how to check if the document contains all Tags.</p>