When using DTO's, how do I access behavior on child collections?. or
make these relationships available at the Business layer?

Layer 1: DAO's - contains Nhibernate mappings and logic to retrieve
from the datastore, returns DTO objects.
Layer 2: DTO's - POCO's
Layer 3: Business Logic: Entities here contain the DTO's.

So for example, let's say I have an object Customer with a collection
of Orders.  I want to access behavior in Orders through the Customer..
so:

Customer cust;

// populate customer here.

cust.Orders(0).PrintOrder();

Because Orders is just a collection of OrderDTO's, I won't have access
to the object behavior available in the Order business layer object.

--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to