Since now I\'ve used the excellent FluentValidation library to validate my model classes. In web applications I use it in conjunction with the jquery.validate plugin to per
I had this very problem and recently open sourced my solution: http://foolproof.codeplex.com/
Foolproof's solution to the example above would be:
public class Event { [Required] public DateTime? StartDate { get; set; } [Required] [GreaterThan("StartDate")] public DateTime? EndDate { get; set; } }