I have a TextBox whose value is passed to an int property in an object after being parsed to an int.
When I use a ValidationProvider this conversion step is ignored when validating and I get an error telling me that I cannot save the string to an int32.
I can fix this by creating a string property in my object that acts as a bridge between the textbox value in the form and the int value in my business object but I dislike this approach because it would require changing my domain objects to please the validation layer.
How can I validate a textbox that stores its value to an int after a conversion without creating a bridge property in the domain object?