title: Delete object and all its child objects in Entity Framework?
body: <p>I've been trying to find the answer to this question here. Several people seem to ask similar things, but I don't get the answers. I have an EF entity with a bunch of child entities (one-to-many relationship). I want to be able to delete the "parent" entity and have all the child entities deleted at the same time.</p>
  
  <p>Some people mention "Cascade Delete" should be set on both EF model and database (Sql Server in my case). The problem is:</p>
  
  <ol>
  <li>I have absolutely no idea how to do this (seems to be implied in those answers that you should know, but sorry...)</li>
  <li>I have a feeling I've run into a similar problems before and found an answer somewhere that was simpler than setting this Cascade Delete. I may be wrong, maybe it is the only way, but if there is a simpler solution I'd like to know.</li>
  </ol>
  
  <p>In either case, a clear example of how to get this working would be greatly appreciated!</p>