Thanks for the quick replies guys. Charles, I’ll definitely check out FillModuleInfo/FillModuleCollection and FillPortalInfo/FillPortalCollection if for no other reason than to increase my knowledge of DNN but would you agree that a custom “hydrator” is required given the following. Say we have a custom business object instantiated using this class:
Public Class CustMember
Private m_lastName As String
Private m_firstName As String
Private m_Certifications() As String
.
.
.
Public Property LastName() As String
Get
Return m_lastName
End Get
Set(ByVal Value As String)
m_lastName = Value
End Set
End Property
Public Property FirstName() As String
Get
Return m_firstName
End Get
Set(ByVal Value As String)
m_firstName = Value
End Set
End Property
.
.
.
Public Property Certification(ByVal idx As Integer) As String
Get
Return m_Certifications(idx)
End Get
Set(ByVal Value As String)
m_Certifications(idx) = Value
End Set
End Property
End Class
I don’t see an aesthetically pleasing or efficient way to load the array m_Certifications using DAL/CBO. Note that each member has X number of certifications. I was going to use a ReDim m_Certifications(CertNbr) in a constructor to set the size. It looks like it would be better to build a custom “hydrator” method to fill objects instantiated from this class. Am I missing something or could I modify this class in some way that is not obvious to me?