Set default DeleteBehavior for all relationship to Restrict
EF Core 2.0 default behavior is CASCADE. That mean all the child will be deleted when the parent is deleted. See here for more details https://docs.microsoft.com/en-us/ef/core/saving/cascade-delete
In SimplCommerce, we prefer to set this default behavior to Restrict to prevent data loss. Scenarios required Cascade need to explicitly override.
https://github.com/aspnet/EntityFrameworkCore/issues/3815
U close to prime time? :-)
Sent from my iPhone
On Jan 30, 2018, at 11:56 AM, Thien Nguyen Le Quynh [email protected] wrote:
Closed #370.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
https://stackoverflow.com/a/34777839
It's done already