Hello,
If I have the following relationship and prefetch path:
(orderEntityObj)
Order -> Order Item -> Subscription Relation
(customerEntityObj)
Customer -> Subscription Relation -> Order Item -> Order
And I retrieve these entities in two separate calls via adapter,
And make a couple edits:
orderEntityObj.OrderItemCollection[0].Discount = xxx;
customerEntityObj.SubscriptionRelation[0].DateExpires = xxx;
And assign one object to another , even though these collections were retrieved separately:
orderEntityObj.OrderItemCollection[0].SubscriptionRelation = customerEntityObj.SubscriptionRelation[0];
What will happen here ? :
adapter.SaveEntity(orderEntityObj, true, true) ;
Will orderEntityObj.OrderItemCollection[0].Discount be updated?
Will orderEntityObj.OrderItemCollection[0].SubscriptionRelation.DateExpires be updated?
Will customerEntityObj.SubscriptionRelation[0].DateExpires be updated?
Is LLBLGEN using references to the redundant data in these collections?
We have complex relationship with many tables and many different use-cases. We will be retrieving entities with several dimensions of prefetch paths, in different directions. I want to know if we can connect entities in the way described above and if LLBLGEN is allocating memory for the redundant data sets.
Thank you!