I am using EF Core 6.0. When I delete the parent row, I would like to not take action(remove or setnull foreign key column) child row and remanining child row and foreign key column's value.
I tried NoAction behavior but NoAction is the same with Restrict behavior.
Delete
NoActionand DeleteRestrictare, almost, the same thing. See the important part: "both of these options cause referential constraints to be enforced".In a relational database, referential constraint (or referential integrity) means that a value in a foreign key should exist on the referenced table, they cannot be a value in a foreign key that not exists in the referenced table. (Thank you, @IvanStoev, about notice me to include this content)
Quoting Impact on database schema MS docs: