About Data Annotations Extensions
This project provides common validation attributes (full list on the left) which extend the built-in ASP.NET DataAnnotations (Required, Range, RegularExpression and StringLength).
All validation attributes are covered with unit tests and also have a dedicated controller in the included sample website (click Demos to see a demonstration of each validation attribute).
See my blog post Introducing Data Annotations Extensions for an overview of the project as well as some examples.
NuGet packages are available now, and they come in two flavors:
- DataAnnotationsExtensions: Contains the server-side Data Annotations Extensions, which can be used in any project that can reference System.ComponentModel.DataAnnotations.
- DataAnnotationsExtensions.MVC3: Contains both server and client side Data Annotations Extensions, automatically registered for client-side validation with ASP.NET MVC3.