DetectChanges works incorrect when update nested owned entity #29085
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-bug
Milestone
When I try to assign
null
to nested owned entity afterdbContext.ChangeTracker.DetectChanges()
ef core assigns to this property previous value (I guess snapshot value)Output
I expect that
NestedNestedEntity2
should be also null after DetectChanges but it is what it isProvider and version information
EF Core version: 6.0.9
Database provider: Microsoft.EntityFrameworkCore.InMemory, Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 6.0
The text was updated successfully, but these errors were encountered: