This website is intended as archive for old content and forums.
Please visit http://opf3.codeplex.com for the project's new website.

General Discussion

FORUM TOPIC

What is Opf3? Why is Opf3? How is Opf3? All these burning questions and issues discussed here.

RSS
Alexandre Vasconcellos Caldas Filho
Posted on the 02/01/07 1:45 PM
Relationship and cache
Reply Quote
 Supose I have classes like Customer and Order, and a relation from Order to Customer.

If I load an ObjectSet<Order> with 10 orders which have the same customer, will I have 1 Customer instance for each Order, or all of the Orders referencing the same Customer instance?

Thanks!

Alexandre

Christian Liensberger [Moderator]
Posted on the 02/02/07 9:44 AM
RE: Relationship and cache
Reply Quote
 Hi,

you need to set up the cache and the instances are going to be the same! Opf3 is always taking the data from the cache if one is set up and the object is found in the cache.

Regards,
Christian

All times are in GMT.