Adding Interfaces to EntityCollection classes

Posts   
 
    
Shawn S
User
Posts: 16
Joined: 09-Aug-2006
# Posted on: 09-Aug-2006 20:28:45   

The generated EntityCollections don't include a user code region for interfaces in the class declaration. I tried just copying the code region (__LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces) from another class, but upon regeneration it removed it anyway. So I guess it doesn't just do a blanket search for any of the defined code regions, they actually have to be legal in that class's context. This is a bit of a bummer. Is there a need to restrict adding additional interfaces for EntityCollections? If not, is there any chance we can get this added?

Thanks.

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 10-Aug-2006 01:48:04   

You can edit the existing template or create a new EntityCollection.template that adds a user code region for defining interfaces. These user code regions must exist in the template to not be overwritten in the file.

Shawn S
User
Posts: 16
Joined: 09-Aug-2006
# Posted on: 10-Aug-2006 01:56:17   

Ah Thanks! I'm obviously new to LLBLGen. This is a really great tool. I'm having a lot of fun with it.