title: LINQ to Entities does not recognize the method 'Boolean Contains(Int32)' method
body: <p>The below exception flown</p>
  
  <blockquote>
    <p>LINQ to Entities does not recognize the method 'Boolean
    Contains(Int32)' method,      and this method cannot be translated
    into a store expression.</p>
  </blockquote>
  
  <p>while trying to execute the below query</p>
  
  <pre><code>List&lt;int&gt; studentIDs = Common.getFilterStudents();
  var query = from a in studentTable
              where studentIDs.Contains(a.StudentID)
              select a;
  </code></pre>
  
  <p>How can I filter the query using the studentIDs list?</p>