CSLA 2.0 List of Parent Objects?

CSLA 2.0 List of Parent Objects?

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


reagan123 posted on Friday, December 07, 2007

Hello everyone.
I'm trying to build a RootList of parent objects and can't seem to wrap my head around it.  Right now i'm assuming my parent object needs to be of type BusinessBase and my RootList needs to be of BusinessListBase.

I have a feeling this is wrong because the RootList example in the book uses an editable child... What is the best way to get a list of ParentObjects.

Hope this makes some sort of sense...

Thanks!

 

Michael Hildner replied on Friday, December 07, 2007

Hi,

If i get you right, you'll need an EditableRootList, which contains EditableChild objects. Poached this from the book

[Serializable()]

class EditableRootList :BusinessListBase<EditableRootList, EditableChild>

Your editable child objects can contain collections of other objects, if that's what you mean by parent.

Regards,

Mike

 

Copyright (c) Marimer LLC