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

Stop deleting orphans for optional relationships configured for cascade deletes #27557

Merged
merged 1 commit into from
Mar 11, 2022

Commits on Mar 2, 2022

  1. Stop deleting orphans for optional relationships configured for casca…

    …de deletes
    
    Fixes #27217
    Fixes #27218
    
    The 5.0/6.0 behavior here is:
    - Orphans are deleted if the relationship is severed by navigation property
    - Orphans are not deleted if the relationship is severed by setting the FK to null
    
    This change means orphans are not deleted in either case. The change that causes this to happen is to not set a conceptual null for a nullable FK property. Deletion can still be forced by explicitly forcing a conceptual null or just by setting the dependent state explicitly to Deleted.
    ajcvickers committed Mar 2, 2022
    Configuration menu
    Copy the full SHA
    2e64a62 View commit details
    Browse the repository at this point in the history