Deleting orphans with Entity Framework | One Unicorn - 0 views
-
Steven van Dijk on 14 Oct 12"It is common for a single parent entity to be related to many child entities. This relationship may be required or optional. A required relationship means that the child cannot exist without a parent, and if the parent is deleted or the relationship between the child and the parent is severed, then the child becomes orphaned. In such situations it is often useful to have the orphaned child automatically deleted."