Thanks for your reply.
Our problem is that if we detach the result from the context then the sub objects are not references. The same subobject items exists mutliple times. We get always multiple copys of the sub item an no reference to one object.
If we change a property of a subobjekt-item then the other copys not be affectet.
We have a contacs classe with subitems of nametypes. Every contact can have one or more name entries. The nametypes are categories of names. If a change one nametype (not the value of the nametype) then only the one object will be affectet. Not all objects of the same nametype (example: we change the nametype from "Name1" to "FirstName")
If the result of a query not detached and on serverside then that works - but not if we detach and change on client-side.
I hope you can understand what I need/mean ;-)
An other problem exist if we not detach the result and send to the client - client change the property and send back to the server. On the server we now try
// not a detateched copy!
then we get the exception
"Object references between two different object scopes are not allowed. The object 'ContactsEntities.Contact' is already managed by 'ObjectScopeImpl 0x7a' and was tried to be managed again by 'ObjectScopeImpl 0x79 OpenAccessRuntime.EnlistableObjectScope'."
In your documentation you say that MaskNoMask=Object is not managed by a context. So why can we not attach it?