After regenerating Adapter, the validators dont found

Posts   
 
    
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 01-Feb-2005 11:05:56   

Hi,

Newbie question please be patient.

I'm just trying the LLBLGenPro, and generated the first project with the Adapter template.

It worked well, but when regenerated after the db modification, the generic project didn't build because of the lack of validator classes.

"Namespace or type 'ValidatorClasses' for the Imports 'myClass.ValidatorClasses' cannot be found. "

Then writes similar messages for all validator classes.

I read, that the generator never override the validator classes, so maybe on doesn't regenerate, but looking for, and don't find.

Does anybody can tell me, what am I set wrong?

Thanks in advance

Gabor

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 01-Feb-2005 12:16:44   

Gabor wrote:

I'm just trying the LLBLGenPro, and generated the first project with the Adapter template. It worked well, but when regenerated after the db modification, the generic project didn't build because of the lack of validator classes. "Namespace or type 'ValidatorClasses' for the Imports 'myClass.ValidatorClasses' cannot be found. " Then writes similar messages for all validator classes. I read, that the generator never override the validator classes, so maybe on doesn't regenerate, but looking for, and don't find.

You generated the code in a new folder or in a folder which already contained a project, for example a selfservicing project?

If the generator sees that a validator class is already present, it is not overwritten.

Frans Bouma | Lead developer LLBLGen Pro
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 01-Feb-2005 14:21:29   

I regenerated the code to the same folder, with the same template (adapter), as previously, and didn't change anything, only regenerated the code after db change.

Thanks

Gabor

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 01-Feb-2005 14:58:10   

It can be you used a different root namespace the first time. As the validator classes aren't overwritten, they still have the different namespace name. Could you please check if this is the case?

Frans Bouma | Lead developer LLBLGen Pro
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 01-Feb-2005 20:50:50   

Thanks Frans simple_smile

Thi is the case. I inserted my company name as suffix to the namespace, but then changed, as it was too long.