Base type collections self-servicing

Posts   
 
    
Rostizh
User
Posts: 7
Joined: 25-Jan-2007
# Posted on: 10-Aug-2007 17:12:29   

Hi,

Using v. 2.0, self-servicing Is there a base type for collections where I can put IEntity or EntityBase objects in. And thus all entities using polymorphism?

We want to make a generic entryform which can edit any entity. The collection I'm talking about is then bound to a grid on that form.

Thanks,

Roland

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-Aug-2007 17:56:46   

Hi Rostizh,

In SelfServicing all <yourEntityName>Collection inherits from EntityCollectionBase<TEntity> that implements _IEntityCollection _that define typed basic collection behavior.

Also every field is of type _EntityField _implements _IEntityField _that is the unit which is used to hold the value for a given property of an entity.

For info please read carefully LLBLGenPro Reference Manual and start reading these posts: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=6054 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=8796 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=8724 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=9670 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=9268

What do you want to do a generic entryForm? Do you want to write less code at the end of the day?

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39859
Joined: 17-Aug-2003
# Posted on: 10-Aug-2007 18:23:10   

I'd go for IEntityCollection, as you can access the elements in the collections using that interface without knowing the type simple_smile

Frans Bouma | Lead developer LLBLGen Pro