Entity Merging with Context object

Posts   
 
    
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 17-Aug-2007 19:59:54   

Say I have 2 collections, each is rooted at CustomerEntity and each has been joined to a context. Collection 1 has a prefetch of Customer - Orders and Collection 2 has a prefetch of Customer Employees. Each has fetched customer 1,2 and 3.

Because of the uniqueing actions of the context. After I fetch into collection 1 and collection 2 customers 1,2,3;

I expect that the customer entities contained in each collection have been made unique and that each customer entity has both it's OrderCollection and it's Employee collection filled.

Are my expectations correct?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 18-Aug-2007 04:25:45   

Yes, your expectations are correct simple_smile Remember to add the collections to the Context before fetching collections.

(Ref: LLBLGenPro Help - Using generated code - Adapter - Using the context - Prefetch Path fetches)

David Elizondo | LLBLGen Support Team
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 18-Aug-2007 13:05:18   

Thanks