Hi,
I would like to know what the best practice for populating a business object hierarchy (parent/child/grandchild) structure is from a single database call.
I can think of a couple ways to accomplish it off the top of my head such as:
left-joining all the relations in my sql statement then use looping and logic to fill the business objects
or
use several select statements and 1 datareader and use its NextResult() method to iterate through each result set and fill the corresponding BO's
Just wondering what the best practice for this is
I am using DAAB and c# for my DAL
Thanks!