This question is locked. New answers and comments are not allowed.
I am doing experiments with Disconnected API. In my case, there are huge business objects, in which complex relationships, such as an employee has 47 fields, collection of contacts, a collection of photos, a collection of stories addresses every element of the history of appeals, also contains a subordinate on a one-to-many objects, etc. .
As a result a large graph of business objects, which must be loaded into my N tier application, in parts, but parts may be edited, added and deleted on the client, after which the count should go back to the database.
Actually the main question:
I've downloaded to the client application object "Employee" and put it in ObjectContainer, user edit data object "Employee" and wanted to have to download multiple objects "Contact" for editing, which are in the "one person -> many contacts. " Download 2 contact to ObjectContainer client application and use them there using the method of Apply() I was surprised by the following picture: The container has 3 object (one Employee and two Contact), but the collection of "Contacts" object "employee" - empty!
Why?, There is in fact the primary and secondary identifiers match ... ??
What you recommend? How to load on demand subordinate objects in the graph and apply to ObjectContainer, that these loadable objects were available through the Persistent Class?
As a result a large graph of business objects, which must be loaded into my N tier application, in parts, but parts may be edited, added and deleted on the client, after which the count should go back to the database.
Actually the main question:
I've downloaded to the client application object "Employee" and put it in ObjectContainer, user edit data object "Employee" and wanted to have to download multiple objects "Contact" for editing, which are in the "one person -> many contacts. " Download 2 contact to ObjectContainer client application and use them there using the method of Apply() I was surprised by the following picture: The container has 3 object (one Employee and two Contact), but the collection of "Contacts" object "employee" - empty!
Why?, There is in fact the primary and secondary identifiers match ... ??
What you recommend? How to load on demand subordinate objects in the graph and apply to ObjectContainer, that these loadable objects were available through the Persistent Class?