This question is locked. New answers and comments are not allowed.
Hi,
I am trying to attach an object to the ORM context using AttachCopy ( the object exists in the database already, but was loaded via a different mechanism, I simply want to save changes). The AttachCopy works and I can SaveChanges no problem, however when I call AttachCopy, the navigation properties are not populated. If I create a new object and set the ids for the nav properties then add it to the context using 'Add' then all the nav properties are populated.
Is this expected? Is there a way to have all navigation properties populated before calling SaveChanges?
I can send my .rlinq file if it would help.
Regards,
Martin
I am trying to attach an object to the ORM context using AttachCopy ( the object exists in the database already, but was loaded via a different mechanism, I simply want to save changes). The AttachCopy works and I can SaveChanges no problem, however when I call AttachCopy, the navigation properties are not populated. If I create a new object and set the ids for the nav properties then add it to the context using 'Add' then all the nav properties are populated.
Is this expected? Is there a way to have all navigation properties populated before calling SaveChanges?
I can send my .rlinq file if it would help.
Regards,
Martin