I’m an old 1.x CSLA user and it’s been a while since I’ve had to design some new objects. I’m trying to nest collections. Is this possible?
Public Class A
Default Public ReadOnly Property Item(ByVal Index As Integer) As Class B
Public Property GroupName
Public Class B
Default Public ReadOnly Property Item(ByVal Index As Integer) As Class C
Public Property Person
Public Class C
Public Property RequestType
Public Property Request
You can't directly nest collections, because BusinessListBase can only contain BusinessBase child objects.
In other words, the child item in a list must be an object. But that object can have a child collection. So it can look like this:
BB -> BLB -> BB -> BLB -> BB
So yes, you can nest collections, just with intermediate node objects.
Thanks for the help!
Copyright (c) Marimer LLC