How to regenerate project in Adapter, and not overwrite custom code

Posts   
 
    
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 25-Jan-2006 10:54:24   

Hi Frans,

How to regenerate project with adapter scenario, that save the custom modified code?

For VS2003 was a TaskPerformer, that generated Adapter project files with subclasses, one for each entity.

This was safe to regenerate the code thereafter, becasue the custom modified subclasses never was overwritten.

My question:

There is a similar taskperformer for VS2005 too, or how to preserve custom written code after regenerating the projet?

Thanks in advance

Gabor

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 25-Jan-2006 11:06:20   

Where have you placed your custom code? In the user code regions? that code is preserved. For vs.net 2005 there are derived classes as well, but you're encouraged to use partial classes instead to keep your own code safe.

Frans Bouma | Lead developer LLBLGen Pro
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 25-Jan-2006 11:35:59   

Thanks Frans,

In most of the cases I have to modify the entyties properties, so I think that the derived classes are more suitable for me, then partial classes.

Gabor

Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 29-Jan-2006 13:30:30   

Thanksks Frans

For vs.net 2005 there are derived classes as well, but you're encouraged to use partial classes instead to keep your own code safe

Does it mean, that there is a two class scenario for Adapter template set, that is works for 2005 release?

I know, that such a template set was for VS2003, but I don't know, does it work for the new version of the LLBLGenPro too?

Thanks,

Gabor

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 31-Jan-2006 07:21:11   

The 2 class scenario was and is a Selfservicing scenario, not an Adapter one.

Partial classes is a feature in .Net 2 and LLBLGen supports it.

Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 31-Jan-2006 09:07:16   

Thanks,

The 2 class scenario was and is a Selfservicing scenario, not an Adapter one

I know it, but in the third party section is a template set, that automaticaly generates inherited classs for all entities in adapter scenario, like the two class scenario in selfservicing. In the User manual in the Generated code - Adding your own code to the generated classes section also mentioned this template:

... SelfServicing has a third option: the two-class scenario, in which you can add your code to the derived entity class. For adapter such a template set is available for customers in the 3rd party section in the customer area.

My question is:

This template set worked well with previous version, but can I use it with 2005 version of the LLBLGenPro too, or there is a modified version available?

Thanks

Gabor

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 31-Jan-2006 10:42:35   

There is an updated version of the extended classes for adapter templateset available in the 3rd party section.

Frans Bouma | Lead developer LLBLGen Pro