Hello All,
Ok, I have read a bunch of post and understand that lazy loading and adapter do not fit well in the current design.
However, I would like some insider views for a very common problem (IMHO) and the way, you guys resolved it using adapter:
I am having a DAL, and a BL (Manager classes).
Then on the PL side, I have a complex form with customer’s information.
On this form I have a lot of tab pages for, for example, customer’s orders, customer’s subscription, customer’s interests.
Each of the tab contains a collection (0-n relations):
- Customer.Orders
- Customer.Subscriptions
- Customer.Interests
How would you handle that? I only want to load the data when the user clicks on a tab and not load everything into memory at the displaying of the form. Code snipplet for BL, DAL and PL appreciated
Cheers,
Silat