yogiberr wrote:
hiya,
I have downloaded the "Northwind example 1 (C# version)"
I want to be able to add validatorLogic etc.
I believe that:
1) I should do this thru the llbGenPro GUI. (instead of manually hacking the genarated code)
2) the changes will be reflected in the newly generated code, after I re-generate the project.
As far as I can see, the:
1) Vis studio project is included in the download,
2) .lgp project that actually generated the code is NOT included.
Am I correct?If so, how can I obtain the .lgp project that generated the code?..I think it would be of great value to any newstarts..
cheers,
yogi
Currently, validation logic is implemented in code using IValidator and IEntityValidator. The code generator creates property validators (implementations of IValidator) for you that are not overwritten when code is regenerated. This allows you to completely customize your validation code without fear of losing it each time code is regenerated. If you wish to do entity-level validation, you will need to manually implement IEntityValidator. You can find more information in the docs at Using the generated code->Validation per field or per entity. The .lgp file is not required to validate data in the framework.
I believe in-designer validation is planned as a future enchancement, but am not sure.
Jeff...