I have several collections defines as below. Now I am trying to enable
lazy loading but the below does not lazy load the collection. I have
tried putting ServiceItems as a property (I lose the events) but that
does not work either.
Any ideas?
p.s. DetailList is just a wrapper for the ilist that turns it into a
bindinglist for winforms binding
Public WithEvents ServiceItems As New DetailList(Of
Db_Serviceitems, Dbmaster)(Me)
<HasMany(GetType(Db_Serviceitems), inverse:=True, lazy:=True)> _
Protected Overridable Property __ServiceItems() As IList(Of
Db_Serviceitems)
Get
Return ServiceItems.__internal_details
End Get
Set(ByVal value As IList(Of Db_Serviceitems))
ServiceItems = New DetailList(Of Db_Serviceitems,
Dbmaster)(Me, value)
End Set
End Property
thank you.
~Gerdus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---