fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.

Home Page:https://fullstackhero.net/dotnet-webapi-boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

baranacikgoz opened this issue · comments

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.