Custom Data Annotation Validator Part I : Server Code
Let's say you want to create a GreaterThan validation attribute and use it like so: public class Trip
{
[Required]
public DateTime StartDate { get; set; }
[Required]
[GreaterThan("StartDate")]
public DateTime EndDate { get; set; }
}
The implementation would look something like...
[read more]
Submit a review:
Login required.