The DELETE statement conflicted with the REFERENCE constraint in ASP.NET Dynamic Data
问题 I have two tables Application_User and Application_User_Access. Application_User_Access table is having a foreign key constraint with Application_User table. When I delete a record in Application_User table, I receive "The DELETE statement conflicted with the REFERENCE constraint" exception. This happens in ASP.NET Dynamic Data Entities Web application. I want to delete all the child records in this case and finally delete the parent record. How to implement this? 回答1: You can implement a