© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
35 replies
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!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Entity Framework Cascade Delete Issues
C#CC# / help
3y ago
✅ delete method and cascade or ristrict?
C#CC# / help
4mo ago
EFCore - When to save changes
C#CC# / help
17mo ago
❔ EFCore One-To-One
C#CC# / help
3y ago