title: How to return all the Objects that have their IDs inside a List of Long
body: <p>I have a list of Long values as follow :-</p>
  
  <pre><code>List&lt;long&gt; relatedUserID = new List&lt;long&gt;() ;
  </code></pre>
  
  <p>But how i can retrieve all entity framework objects that have their ID inside the List. i am trying to write something such as :-</p>
  
  <pre><code>return entities.User.Where(a=&gt;a.UserID.contain(relatedUserID)).Include(a2=&gt;a2.UserDetails);
  </code></pre>
  
  <p>can anyone advice ?</p>