Populating Inherited Entities

Posts   
 
    
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 19-Oct-2006 06:28:18   

Public Class MessageEntity Inherits SmallBiz.SBH.Dal.llblgen.EntityClasses.TblMessagesEntity

End Class

Public Class MessageCollection Inherits SmallBiz.SBH.Dal.llblgen.CollectionClasses.TblMessagesCollection

End Class

I have been using a loop to populate my inherited entities. Is there an easier way or method to do this? TblMessagesEntity is essentially the same as MessageEntity so it would be good to be able to populate it in one step.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 19-Oct-2006 07:05:27   

What do you mean by "populate my inherited entities"?

An abstract answer: just as you populate the parent entity, you can populate the child-entity.

Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 20-Oct-2006 00:09:00   

How do i populate the parent entity?

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 20-Oct-2006 04:31:20   

Well if you have inherited the from the entity then it's inherited values should be filled when you fetch using the derived class.