Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for delete behaviour in EF Core 3.1 #22890

Closed
stevendarby opened this issue Oct 5, 2020 · 1 comment
Closed

Documentation for delete behaviour in EF Core 3.1 #22890

stevendarby opened this issue Oct 5, 2020 · 1 comment

Comments

@stevendarby
Copy link
Contributor

Can I ask for clarity over delete behaviour in EF Core 3.1 please.

This documentation for Restrict states None for effect on dependent entities in memory.

But the enum documentation for Restrict says "For entities being tracked by the DbContext, the values of foreign key properties independent entities are set to null when the related principal is deleted."

Can I correctly assume that the first documentation is correct and the enum one wrong?

As a side note, NoAction also has the same enum comment as Restrict, but doesn't feature in the first documentation. I'm making an assumption that they have the same behaviour client side and both exist just to match different database options among different providers. But it'd be nice not to have to make assumptions about any of this.

Originally posted by @Snappyfoo in #21252 (comment)

@ajcvickers
Copy link
Member

Answered in #21252. Cascade delete docs tracked by dotnet/EntityFramework.Docs#473

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants