Help creating a list within a list

Help creating a list within a list

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


TerryH posted on Wednesday, October 29, 2008

Using the Projectracker as an example,  I would like to create a Projectlist and have a list of Resources within each project in the list of projects ( I hope that makes sense).  I'm using CSLA.NET 3.6 if someone has an example solution that they would care to share with me that would be great, or point me in the right direction.

Lalit replied on Thursday, October 30, 2008

Hi,

Define a class Resource of BusinessBase type, and its collection class Resources derived from BusinessListBase. Mark them as Child in constructors. Now define a class Project derived from BusinessBase. This project class will also be marked as child if u r planning to put it in EditableChildCollection(Projects derived from BusinessListBase) otherwise not marked if to put it in EditableRootCollection(derived from EditableRootListBase). Project class will have Resources as its child. You can find this in ProjectTracker example as well.

TerryH replied on Friday, October 31, 2008

Thank you for your response, however what I'm trying to do is have a list of Projects and linked to that list of projects is the list of resource for each project, in a master detail relationship

Copyright (c) Marimer LLC