I have just created my first Verifier for an EmailAddress. The problem is that the validation is only being performed when the SaveAll is being used.
On some of my other properties that have set lengths and such they are being thrown immidiately. I was looking at the documentation and this is the way it is suppose to happen.
Is there a reason it is only verifying after a save?
[VerifierProvider]
public static IEnumerable<Verifier> GetVerifiers(Object pVerifierProviderContext)
{
List<Verifier> verifiers = new List<Verifier>();
verifiers.Add(GetEmailAddressVerifier(Descriptors.Email));
return verifiers;
}
private static Verifier GetEmailAddressVerifier(PropertyDescriptor pEmailDescriptor)
{
return new RegexVerifier(pEmailDescriptor, true, NamedRegexPattern.Email);
}
Edited by orcities - 09-Oct-2007 at 1:27pm