Is there a way in Asp.Net MVC to use some kind of fluent validation ?
I means, instead of validation my poco like that :
public class User {
[Required]
public int Id { get; set; }
Having something like that (in an external class) :
User.Validate("Required", "Id");
Is that something possible in Asp.Net MVC 2 (or 3) ?
I know the FluentValidation library exists, but I will like to know if something in the core of Asp.Net MVC allow that.
I don't like to polluted my POCO like that. Also, what happen if I need to validate let say that BeginDate is before EndDate ? With attribute, you can't do that.