title: Remove a record in entity framework
body: <p>I'm working with entity framework for sometimes now and one thing that really irritates me is the fact that to delete an item we have to find the object and then remove it. so if we have the <strong>PK</strong> of the record we have to get the object and then remove the object. </p>
  
  <p>ex: </p>
  
  <pre><code> Category category = db.Categories.Find(categoryId);
   db.Categories.Remove(category);
   db.SaveChages();
  </code></pre>
  
  <p>In this method we are hitting database twice..!!! 
  is there a way to remove the record with just hitting the database once? </p>
  
  <p><strong>For those none-believers this is the glimpse out come: :)</strong></p>
  
  <p><img src="https://i.stack.imgur.com/sBdDO.jpg" alt="enter image description here"></p>