asp.net mvc 4 validation , comparing between two “System.TimeSpan” fields

hamid19395

New Member
I am woking on asp.net MVC4 project I would like to know how to add validation for "Time Span "I used Fluent Validation before ASP.NET MVC: LessThan and GreaterThanI have added \[code\][Required]public System.TimeSpan Start_hr { get; set; }[Required]public System.TimeSpan End_hr { get; set; }\[/code\]I used to http://foolproof.codeplex.com/ \[code\][Required]public System.TimeSpan Start { get; set; }[Required][GreaterThan("Start")]public System.TimeSpan End { get; set; }\[/code\]but it doen't work with "System.TimeSpan"Do you have any idea how to add validation to "System.TimeSpan" field UPDATE:Seems that foolproof doesn't work with EF http://forums.asp.net/t/1752975.aspx/1
 
Back
Top