I need a validator for a Belgian social security number.
2 of the rules for this number depend on other values of the person, namely sex and date of birth.
When I define my validator as SSN_Validator : Validator<Person> , it works, but i cannot use this validator as property validator,
and so it cannot trigger the error - template in my wpf form.
If I define my validator as a SSN_Validator : Validator<string> ( string being the datatype of the SSN ), I can assign this validator to the property,
and is can trigger the error-template in my wpf form, but I cannot access the owning entity , or find any other way to know the date of birth and sex of the person.
Is there a way for the first validator to trigger the correct error-template, ( MVVM pattern in WCF scenario)
or for the second to access the date of birth and sex of the person ? (Validation Configuration in xml files )
Thanx for any feedback.