What's the best practice for this senerio?
A business server has an LLBL generated Adapter project of Customers with Orders.
A client requests via net.tcp remoting the Customer object with their Orders.
WCF transmits the object and we get an IEntityCollection2 object of the customer and their orders. I've tested this out and it works fine.
I want to end up with a filled LLBL generated Customer with Orders graph and use all the nice tools/events/goodies that come with binding a UI to a LLBL EntitCollection.
I see two options, but am unsure if they work:
1) I'd like to take the IEntityCollection2 and rehydrate the Customer and Orders object graph. I'll probably have to have the same DLL LLBL makes on both the server and client?? Can/should I cast the IEntityCollection2 to a CustomerCollection?
2) Another way which I am not sure if it's possible: Create a simple Customer with Orders LLBL project for the client and "fill" it with the IEntityCollection2 recieved from WCF from the server? When I am done with it, re-transmit it back to the Server?