C
C#3y ago
gio735

Unable to build due to foreign keys [Answered]

Introducing FOREIGN KEY constraint 'FK_Orders_Addresses_ShipAddressId' on table 'Orders' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. is error it shows
2 Replies
gio735
gio735OP3y ago
Order class has 2 instance of Address class don't really understand how can that cause cycles (it fixed, simply by changing delete behavior, but I'm curious why it works like that...)
Accord
Accord3y ago
✅ This post has been marked as answered!
Want results from more Discord servers?
Add your server