Abstract Generated Classes

Posts   
 
    
tecnocrata avatar
tecnocrata
User
Posts: 9
Joined: 24-May-2007
# Posted on: 24-May-2007 15:47:33   

Hi I have a problem my file .lgp defines various classes like abstract but when i get the generated code those classes aren't abstracts

Why? There are some issue o restriction?

Do you need my .lgp file?

confused

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 24-May-2007 15:58:48   

Do you mean in an Inheritance hierarchy you have set some entities as being abstract?

Yes please attach the lgp file.

tecnocrata avatar
tecnocrata
User
Posts: 9
Joined: 24-May-2007
# Posted on: 24-May-2007 16:18:41   

Sorry the compressed file exceeds 256 KB limit

I'm sending it to walaa DOT atef AT llblgen DOT com ok?

Thanks

tecnocrata avatar
tecnocrata
User
Posts: 9
Joined: 24-May-2007
# Posted on: 24-May-2007 20:56:41   

Hi Walaa Do you have my file?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 25-May-2007 09:55:19   

I've got your file, thanks.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 25-May-2007 10:09:31   

I generated the code (C# SelfServicing), and the Entities marked as Abstract has got Internal constructors, and that's what makes them abstract. ref: http://msdn2.microsoft.com/en-us/library/ms229047.aspx

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39914
Joined: 17-Aug-2003
# Posted on: 25-May-2007 10:52:52   

The classes aren't generated abstract as the internal code sometimes needs to create instances to obtain information, hence the internal constructors and not the abstract class operator.

Frans Bouma | Lead developer LLBLGen Pro
tecnocrata avatar
tecnocrata
User
Posts: 9
Joined: 24-May-2007
# Posted on: 25-May-2007 16:07:44   

Thanks so much.