Top "Cascading-deletes" questions

The concept of SQL databases deleting rows that refer (via a foreign key) to a deleted row.

What are the options for overriding Django's cascading delete behaviour?

Django models generally handle the ON DELETE CASCADE behaviour quite adequately (in a way that works on databases that don't …

django django-signals cascading-deletes
How do I edit a table in order to enable CASCADE DELETE?

I have a table representing users. When a user is deleted I get: DELETE statement conflicted with the REFERENCE constraint …

sql sql-server sql-server-2008 cascading-deletes
Cascading deletes with Entity Framework - Related entities deleted by EF

I have an issue with deletion in Entity Framework. In short, EF explicitly tries to delete an entity from the …

entity-framework cascading-deletes
How do you ensure Cascade Delete is enabled on a table relationship in EF Code first?

I would like to enable CASCADE DELETE on a table using code-first. When the model is re-created from scratch, there …

entity-framework ef-code-first entity-framework-4.1 cascading-deletes
MS SQL "ON DELETE CASCADE" multiple foreign keys pointing to the same table?

I have a problem where i need a cascade on multiple foreign keys pointing to the same table.. [Insights] | ID | …

sql sql-server foreign-keys constraints cascading-deletes
SQLite Delete Cascade not working

In Android 4.2, using SQLite 3.7.11, when I delete a row from the Quizzes table, who's schema is below, the corresponding rows …

android sqlite cascading-deletes
Doctrine: cascade="remove" vs orphanRemoval=true

What is the difference between the 2 options above? When is it preferable to choose each option?

symfony doctrine cascade cascading-deletes
Entity Framework 4.1 InverseProperty Attribute and ForeignKey

I will create two references between Employee and Team entities with foreign keys. So I defined two entities as follow …

c# mapping entity entity-framework-4.1 cascading-deletes
Django - Cascade deletion in ManyToManyRelation

Using the following related models (one blog entry can have multiple revisions): class BlogEntryRevision(models.Model): revisionNumber = models.IntegerField() title = …

django many-to-many cascading-deletes
What is the recommended equivalent of cascaded delete in MongoDB for N:M relationships?

Assuming the following "schema/relationship" design what is the recommended practice for handling deletion with cascade delete like operation? Relational …

mongodb database-design cascading-deletes non-relational-database database