After a few months of using FluentValidation I asked its author Jeremy Skinner if it were possible to integrate this with xVal . At that time it was not possible because there were no easy way to access the properties needed by xVal. After submitting...
In a previous post I showed you how you can use xVal and the IDataErrorInfo class to add validation to your Asp.net MVC website. In this post I will extend that to Linq-to-Sql and the classes it generates. The northwind database has a suppliers table...
In my last post I showed you how to use Validation attributes on your model for validation. Today I will show how you can create your own attributes that can provide custom validation for you. To accomplish this we need to inherit from ValidationAttribute...