Templates are described in detail in the SDK, which is available to customers. Though I don't think you really need business objects, the entities are business objects, not DTO's.
If I have to write these 2 types of validation code where would i write it if I am going to use the generated objects as my business objects.
1.if i need to do a validation when the value is set (i.e. using binding when the keyboardlostfocus happens & binding causes to set)
2.if i want to validate when I am ending edit on the current entity(i.e losing focus of row in visual & causing a validate method) - atleast I would call a validate method in this case i guess?
Using Adapter -> 2 classes template set is an easy way to do approach number 1.
Then you can customize derivedEntityAdapter.template and entityUsingDerivedAdapter.template to control what is generated in each of the classes, that is how I do it.
I don't see the additional partial class object getting created. or a derived class getting created when those templates are checked. I am trying to find out how should I do.
Also, how to use a validator & when does the methods in the validators called by the entity, is it by setvalue?