This question is locked. New answers and comments are not allowed.
Hi,
I'd like to reattach an object that was serialized/deserialized using JSON.NET to the context. When I attach the object alone, all goes well but when I try to attach the object along with its related objects, it fails.
If I set the relationship to Managed, I get an exception from the AttachXML call (some index overflows), and if I set it to Unmanaged then the SaveChanges call fails on a constraint not being respected (although the id of the parent object is properly set for all my related objects).
Any idea on how to achieve this?
I know that attaching/detaching entities will be supported in the Q2 release, is it soon enough for my to wait until it is available?
Thanks,
Alexis
I'd like to reattach an object that was serialized/deserialized using JSON.NET to the context. When I attach the object alone, all goes well but when I try to attach the object along with its related objects, it fails.
If I set the relationship to Managed, I get an exception from the AttachXML call (some index overflows), and if I set it to Unmanaged then the SaveChanges call fails on a constraint not being respected (although the id of the parent object is properly set for all my related objects).
Any idea on how to achieve this?
I know that attaching/detaching entities will be supported in the Q2 release, is it soon enough for my to wait until it is available?
Thanks,
Alexis