llbgen pro 1 to 2

Posts   
 
    
Ismail
User
Posts: 2
Joined: 01-May-2007
# Posted on: 01-May-2007 16:59:36   

Hello,

I have just downloaded llbgen pro v2. I have an old v1 project that I need to update so that it uses v2. I opened the project and selected the following options:

target platform .net 1.1 self servicing sql server specific net 1x sd.persists.self serving.twoclasses 2003

The old v1 project used to be self servicing 2 class (base classes only). I generated opened the project updated the runtime dlls to new v2 dlls. Now when i compile i get 504 build errors.

C:\DAL\ValidatorClasses\XuserPageValidator.cs(35): 'RiverInteractive.Immediacy.DAL.ValidatorClasses.XuserPageValidator' does not implement interface member 'SD.LLBLGen.Pro.ORMSupportClasses.IValidator.ValidateFieldValue(SD.LLBLGen.Pro.ORMSupportClasses.IEntityCore, int, object)'

Its same error in all my validatorclasses.

Anyone any suggestions? Also is there a how to for going from v1 and v2? I need to maintain my entity classes as these contain quite alot of existing code.

Regards

Ismail

jbb avatar
jbb
User
Posts: 267
Joined: 29-Nov-2005
# Posted on: 01-May-2007 17:09:44   

Is there any missing reference in your when you regenerate with llblgen v.2? Do you generate in the same folder or in an empty one?

Ismail
User
Posts: 2
Joined: 01-May-2007
# Posted on: 01-May-2007 17:44:18   

Hello,

I haved managed to fix this. In the generate wizard I checked SD.Tasks.Generic.ValidatorClassesGenerator. Then regenerated. That brought my number of errors down from 500+ to 48. The remaining errors were due to using call to helpers getting scrubbed during generation. I re added those and it all compiles.

Is there a reason why its losing the helper and Nunit for that matter namespaces during the generation. The entity code is not getting touched which is good although i presume that is something to do with the llbgen generated comments.

Regards

Ismail

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39922
Joined: 17-Aug-2003
# Posted on: 01-May-2007 19:19:08   

Did you apply any recommendations in the 'migrating your code' document in the manual?

Frans Bouma | Lead developer LLBLGen Pro