Reputation: 255
I'm using the Northwind database to learn linq to entities and the entity framework. I'm trying to delete a Supplier entity using its ID. But in order to do that I have to delete all the entities related to it. Is there a feature in Entity framework that allows me to do that?
Upvotes: 2
Views: 2552
Reputation: 364279
Entity framework's cascade delete ability is dependent on cascade delete correctly set on the relation in the database. Cascade delete in EF works this way:
Upvotes: 3