Shadow Property - ChangeTracker Modified State #4474
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Hello,
I'm having a strange behavior with a shadow property and i don't know if it's a bug or not.
I was able to reproduce it in the dev branch.
Given these classes:
I would like to have a Shadow Property called ExtraValueID to be the foreign key to the table ExtraValue.
Entity framework is automatically creating this Shadow Property but when i select the root entity with
AsNoTracking
andUpdate
the entity without changing anything like this:The Shadow Property
context.Entry(order).Property("ExtraValueID")
is being marked as modified with originalValue=null.I think that this property should not be marked as modified. If i create the property ExtraValueID inside the class Order, it works.
Thanks
The text was updated successfully, but these errors were encountered: