Adapter TwoClasses vs General Task

Posts   
 
    
Stephan
User
Posts: 63
Joined: 16-Jan-2007
# Posted on: 20-Jul-2007 12:06:45   

Hi there,

maybe you guys can help me out with this one. We use LLBLGen 2.0 and generate our code using the adapter variant. This means for every entity two classes are generated a base class (BaseEntityClass) and a customclass (myCustomClassEntity). This I can understand. Now we change some code in de myCustomClassEntity. If we want to preserve this code do we have to use the General variant on regeneration of just the same Two classes. We are not sure anymore. And also the code added in the custom part is preserved if we use the twoclass var. as long as it is between the special tags?

I'm asking this because in the free book supplied, which is based on a previous version, there are two options for creating two classes. Namely the first time one creates all files and after that the template is set to "two classes base only", but this is not an option in this version of LLBL.

I couldn't find anything in the helpfile about this.

TIA

Stephan

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 20-Jul-2007 15:06:01   

If we want to preserve this code do we have to use the General variant on regeneration of just the same Two classes. We are not sure anymore. And also the code added in the custom part is preserved if we use the twoclass var. as long as it is between the special tags?

Always write the custom code inside user code region tags. And re-generate the code using the same templates (variants). i.e Two class scenario.

Stephan
User
Posts: 63
Joined: 16-Jan-2007
# Posted on: 20-Jul-2007 15:07:28   

Thanks Walaa, that was we where looking for.