mihies wrote:
Otis wrote:
To elaborate a bit more: adding lazy loading also breaks rules like 'GUI code should always consult BL code for data - access'. Adapter is developed to prevent GUI developers (for example, other scenario's are possible) to take shortcuts for example and use lazy loading instead of teh BL code.
How do you merge code in distributed scenario? For example, let's say that I have a customerentity instance and I want to fetch its orders. I will ask BL to fetch the orderentitycollection via serialization/deserialization. Now, how am I going to attach the fetched collection to customerentity?
customer.Orders.DoNotAddIfPresent =false;
customer.Orders.AddRange(readCollectionFromServer);
This also sets every order's Customer reference to the customer object holding the Orders collection.
PS: Frans, you should really use a spell checker to avoid teh
I know I know
. Sometimes I miss a few typo's