Hopefully that title made sense. Essentially I want to set up validation using Data Annotations in a class that will fail if one the fields (call it Field1 for example) equals a given string (i.e. "abc").
For example
public class myClass
{
[Required]
public string Filed1 {get;set;} //*** I want validation to fail if this string equals "abc"
}
Hope that all makes sense. Any ideas?
Thanks