SetValues
never updates navigation properties. When you execute your code it only knows about changes in simple / complex properties of the entity passed to your Update
method. EF even don’t know about related entities of the entity passed to your Update
method.
You must manually tell EF about each change in your object graph – EF doesn’t have any resolution mechanism for object graphs.