Can I insert a sub-class?

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 10-Nov-2009 02:25:03   

Hi,

I've got...

Table1 which is referenced by Table2 and Table3.

In the designer I've made Table2 and Table3 sub-classes of Table1. What I would like to do is insert another abstract class (T0) inbetween T1 and T2 and T3. So the hierarchy would be...

T1

| T0 | | T2 T3

Is this possible? The tricky bit is that T0 does _not _correspond to a database table.

Cheers, Ian.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-Nov-2009 03:23:16   

You can't as far as I know, but you can make T1 abstract. Does that works for you? If not, please elaborate more on the reason you want thin, maybe there is a workaround.

David Elizondo | LLBLGen Support Team
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 10-Nov-2009 17:05:07   

I've already got a work around but the reason that I wanted this is basically because Table2 and Table3 need to share some code. The obvious place to put this is in a base class except the code to be shared in this case is not relevant to the existing base class. If this wasn't an LLBLGen generated hierarchy then one could just add T0.