I am aware of the business layer validation for the model classes in general n-layered architectures model classes, by using validation attributes.
Now, I just i want to know if its applicable to Linq2Sql classes, as if I manually add some attributes to the class or its members, then on next addition or deletion in Dbml file, it will rewrite the designer classes, erasing my changes made.
Please help me…
Any idea , sample code or site references are highly appreciated.
You can write a partial class and annotate that
Validate Model Data Using DataAnnotations Attributes