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

[BUG] ISoftDelete causes 'violating not-null' exception with Owned Entities. #863

Open
baranacikgoz opened this issue May 15, 2023 · 0 comments

Comments

@baranacikgoz
Copy link
Contributor

Describe the bug
The entities cannot be deleted if they both implement ISoftDelete and have owned entities.
When I debug, the EF is trying to set the fields of the owned entity to null, which is violating not-null constraint for owned entity fields. When you try to make the fields nullable, this time you get int, double and bool fields cannot be null exception.

Expected behavior
EF should not try to set the fields to null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant