You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't see the difference between [Restrict, NoAction], I think there is a mistake in the documentation. Which one will make no effect when deleting the parent Entity?
I want to know which option will leave the data with no change, and what is the difference between the options with Client prefix?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 2df9f508-7992-183c-a909-5b27316e3efd
Version Independent ID: 8e25c165-0abc-9990-ef58-f0ac29c130e3
There is no practical difference between Restrict and NoAction. Some databases may choose when to check constraints differently, but that should rarely have any functional impact.
Forget the difference, it is not right what is written:
"the values of foreign key properties in dependent entities are set to null when the related principal is deleted"
"If a property cannot be set to null because it is not a nullable type, then an exception will be thrown when SaveChanges() is called."
NoAction or Restrict, should leave the dependent entities' value
I can't see the difference between [Restrict, NoAction], I think there is a mistake in the documentation. Which one will make no effect when deleting the parent Entity?
I want to know which option will leave the data with no change, and what is the difference between the options with Client prefix?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: