ideas | discover | explore

Tuesday, February 16, 2010

Validation Application Block for my validation.

As I was sprawling the internet looking for alternatives on adding validation to my winforms app I came across Microsoft Validation Application Block. Its a library I can use in whatever .net application I'm creating whether winforms, asp.net, or services. As I was exploring how to use VAB I found out that there are 3 ways to adding validation in your classes. Its includes decorating your classes with attributes, configuration files, or both. I decided to use attributes for validation on my business objects. It was easy to use and integrate into my current project.

No comments: