Hello
What's the best way of adding a IEntityValidator to some of the classes?
Should i change the constructor in the generated Entity classes to assign the IEntityValidator? (with risk of loosing the code when regenerating the code)? or ...
I need three levels of validation at entity level (some example):
- insert, you can't add an orderline to a already payed order
- update, you can't change an orderline to a already payed order
- delete, you can't delete an orderline to a already payed order
(using selfservice entities)
Thanks
Marco