D
Daisy
Hi Folks,
Got a load of business objects - Product, Price, Offer, FAQ, Description...
Product contains collections of the others (eg. Product.Offers is a
collection of Offer objects)
Similarly, in the database, Price, Offer, Faq, Description all have Product
foreign keys (and there can be multiple of all except Price (it's in its own
table for other reasons)).
I want to pull back a list of all products that contain "Blue" and have a
price between £10 and £20, and given the result set could be 2000 records, I
want to populate everything fron one query.
Is it possible to have my SP return a DataSet with relationships (like ADOs
DataShaping) for this? If not, what's the quickest way to do it, without
hitting the database 2000 times to populate Prices on Products as they're
accessed?
Thanks
Got a load of business objects - Product, Price, Offer, FAQ, Description...
Product contains collections of the others (eg. Product.Offers is a
collection of Offer objects)
Similarly, in the database, Price, Offer, Faq, Description all have Product
foreign keys (and there can be multiple of all except Price (it's in its own
table for other reasons)).
I want to pull back a list of all products that contain "Blue" and have a
price between £10 and £20, and given the result set could be 2000 records, I
want to populate everything fron one query.
Is it possible to have my SP return a DataSet with relationships (like ADOs
DataShaping) for this? If not, what's the quickest way to do it, without
hitting the database 2000 times to populate Prices on Products as they're
accessed?
Thanks