title: Entity Framework: Deleting multiple objects query
body: <p>I have a List which hold the PK ID's of a number of objects in a collection that I want to remove. Does anyone know how to write a single query to retrieve these objects?</p>
  
  <p>Eg: </p>
  
  <pre><code>IList&lt;int&gt; objectList; // populated with int Primary key Ids
  
  using (MyEntities context = new MyEntities()){
  
      var result = context.MyObjectCollection.Where(obj=&gt; obj.ID IN objectList);
  
      foreach(var item in result){
          context.DeletObject(item);
      }
      context.SaveChanges();
  }
  </code></pre>
  
  <p>Any help would greatly be appreciated!</p>