New entity is not saved under certain conditions #26937
Labels
area-change-tracking
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-enhancement
Milestone
We have a similar descendant from the DbContext:
In the program, we are trying to create an entity as follows:
Current behavior:
The entity 'Many' is not saved, the entity 'One' is saved.
Expected behavior:
The entity 'Many' is saved, the entity 'One' is not saved.
If you do not explicitly detect change after changing the reference property 'One', everything works as expected:
This behavior is reproduced in version 5.0.12.
The text was updated successfully, but these errors were encountered: