Losing Constructors When Regenerating Project

Posts   
 
    
Kodiak
User
Posts: 92
Joined: 13-Apr-2009
# Posted on: 19-Apr-2009 18:15:47   

Hi,

I'm new to LLBLGen and just wondering if there is a way to stop LLBLGen from wiping out the Constructors in the entity classes.

I'm using self servicing with LLBLGen 2.6 and using the constructors to set a few default values and perform some initialisation procedures.

I'm modified the Entity class created (with the two class template) but each time the code is generated from the Project these constructors are replaced or duplicated.

Is there another way I should be going about this?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 20-Apr-2009 07:23:28   

In my opinion you should use partial classes and write new method overloads.

David Elizondo | LLBLGen Support Team