C#C
C#4y ago
Pokey

EFCore Cascade Delete when set to DeleteBehaviour.Restrict

Hi,

I would like to force a cascade delete of all DB entries related to the entry I want to delete.

The database is configured to restrict deletions rather than cascade, however I know using the SQL syntax it is possible to override this and force a cascade. How might I achieve this in EFCore?

Thanks!
Was this page helpful?