I want to delete a table row that is split on two entities.
If I try to delete the main entity, I get an error if before I don\'t load the related other entity using
I know this isn't the "correct" answer, but with all the hassle of getting table-splitting working and getting errors on deleting, I just went with a good old SQL command:
DbContext.Database.ExecuteSqlCommand($"DELETE FROM Products WHERE Id = {id}");
Always an option when you're spending hours trying to get a small feature working!