I'm using multiple managers in my application. Immediately after creating a new manager, I do this (pseudocode):
newManager.importEntities(existingManager.exportEntities());
in the existing manager, all entities are working as expected, and have all navigation properties populated correctly. but in the new manager, some entities have null navigation properties. the foreign key properties are populated, but the navigation properties are null.
existing manager:
ParentEntity
id = 1
childEntities = [childEntity]
ChildEntity
id = 2
parentEntity = parentEntity
parentEntityId = 1
new manager:
ParentEntity
id = 1
childEntities = []
ChildEntity
id = 2
parentEntity = null
parentEntityId = 1
this is happening for only a couple of entities. the vast majority of entities are correctly created in the manager with navigation properties as expected. but i can't see anything different about the entities that are not importing correctly. what could be causing this to happen?