As the title says, I'm trying to delete an object using Entity Framework, MySQL and CodeFirst.
I have a many-to-many relations in my object, and I only remove one convention:
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
in my context. But I still get this when trying to delete:
Cannot delete or update a parent row: a foreign key constraint fails (`db`.`jagtartjagtrejse`, CONSTRAINT `JagtArt_JagtRejser_Target` FOREIGN KEY (`JagtRejse_JagtRejseID`) REFERENCES `jagtrejse` (`JagtRejseID`))
Is on delete cascade not supported in mysql connector, or is something wrong?