Bug #68457 | EF Code First Migrations "cascadeDelete" sets ON DELETE RESTRICT | ||
---|---|---|---|
Submitted: | 21 Feb 2013 14:44 | Modified: | 11 Mar 2013 17:53 |
Reporter: | Damien BRUN | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 6.6.5 | OS: | Windows |
Assigned to: | Fernando Gonzalez.Sanchez | CPU Architecture: | Any |
[21 Feb 2013 14:44]
Damien BRUN
[21 Feb 2013 14:44]
Damien BRUN
VS2012 project with simple migration
Attachment: CascadeDelete.zip (application/octet-stream, text), 1.15 MiB.
[11 Mar 2013 17:53]
John Russell
Added to changelog for 6.5.6: Setting cascadeDelete to true in DbMigration.AddForeignKey() results in ON DELETE RESTRICT foreign key constraints in generated DDL, rather than ON DELETE CASCADE as expected.