ExtendedEntityClasses

Posts   
 
    
nero2001
User
Posts: 8
Joined: 10-Oct-2006
# Posted on: 10-Oct-2006 13:55:39   

Hi there,

i have 2 tables, and one is a "child" of the other, so llblgen generates (Self-Servicing 2 class scenario) 2 classes corresponding to the "child" table:

EntityClass: NameEntity.cs

ExtendedEntityClass: NameExtended.cs

Does anyone know the difference between them, and which should i use?

Thanks in advance wink

Jessynoo avatar
Jessynoo
Support Team
Posts: 296
Joined: 19-Aug-2004
# Posted on: 10-Oct-2006 16:38:32   

Hi,

in 2 classes scenario, the extended class gives you a light class inheriting from the base standard class which holds the main LLBLGen logic.

This is to provide an easier mechanism to add to the inherited class your own business extensions clearly separated from the persistence mechanisms.

The base class is abstract so you have to use the extended one.

Now this has nothing to do with inheritence, which is dealt with independently from the chosen scenario.

That said, having tested various scenarios I don't find traces of the naming convention you mention. In mine, I would get xxbase.cs/xx.cs classes/files couples. Could you state the version of LLBLGen you use?

Cheers

nero2001
User
Posts: 8
Joined: 10-Oct-2006
# Posted on: 10-Oct-2006 17:43:03   

Hi,

tnks for your answer wink

I use LLBLGEN 1.0.2005.1 Final (November 2005).

In fact, it generates 3 files for that table. For example, if the table name is User:

EntityBaseClasses\UserEntity.cs

EntityClasses\UserEntity.cs

ExtendendEntityClasses\UserExtended.cs