title: Linq query list contains a list
body: <p>I have 2 a class's:</p>
  
  <pre><code>public class ObjectA
  {
      public int Id;
      public string Name;
  }
  
  public class ObjectB
  {
      public int Id;
      public string Name;
      public List&lt;ObjectA&gt; ListOfObjectA;
  }
  </code></pre>
  
  <p>So I have two lists: One of ObjectB (ListObjectB) and Another contains a list of id's of ObjectA (called  ListOfIdsA).
  If this i want to get a list of ObjectB where ObjectB.ListOfObjectA is in the ListOfIdsA.</p>
  
  <p>My first (and wrong) approach was</p>
  
  <pre><code>ListObjectB.Where(p=&gt; ListOfIdsA.Contains(p.ListOfObjectA.Select(b=&gt;b.Id)))
  </code></pre>
  
  <p>But this obviously throws an exception. I google it, stackoverflowed, but I'm thinking that my search skills aren't going so well in this, can anybody give a ninja awser of this? 
  (Prefereably in lambda expression)</p>