how to use the CSLA framework for filling child collection associated with a parent all the time

how to use the CSLA framework for filling child collection associated with a parent all the time

Old forum URL: forums.lhotka.net/forums/t/12102.aspx


simisreedharan posted on Thursday, August 01, 2013

Hi,

I have started using csla framework recently. I have a table that is having one to many relationship with several tables. When i create an object of the master table i dont want to fill all my child objects collection except one. So I am using lazy loading for this purpose. My doubt is "the one child object collection which i need to fill, all the time i retrieve the parent object, should i do that

If i do it the first way is there anything wrong? I was thinking i could save one trip to the database by implementing it the first way

I would like to know the best way to do it using CSLA framework.

Thanks

Simi Sreedharan

JonnyBee replied on Friday, August 02, 2013

I would implement this within the scope of  DataPortal_Fetch.

Whether you use a SP that returns multiple recordsets/cursors or separate SQL queries is just a matter of code preferences.

simisreedharan replied on Friday, August 02, 2013

Thanks Jonny

Copyright (c) Marimer LLC