Typed Lists to Entity Collections

Posts   
 
    
BoredAPC
User
Posts: 3
Joined: 28-Oct-2010
# Posted on: 06-Feb-2011 23:32:34   

Hello,

Is there a way to get entity collections from a Typed List?

If I had the following entities:

Customers Orders

and I wanted a detail object of the form:

CustomerDetailData { Customer c List<Orders> o }

Customers have one-or-many Orders

Can I get this by creating a Typed List called CustomerDetailData and adding the Customer and Order entity fields?

Is there anything I should be looking at in LLBLGen that can help me fill my data transfer objects?

At this point, I know I can manually do it, but looping through the parents and loading children, but I was trying to do it in a more set-based operation.

Thank you very much!

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-Feb-2011 01:08:31   

Maybe a projection could work here. What is exactly what you are trying to fill? and How do you have the data received (EntityCollection, TypedList,...)?

David Elizondo | LLBLGen Support Team