Data type validation with NHibernate validator

Nov 4, 2009 at 2:21 PM

I'm using the NHibernate validator library with xVal and it works great except for one thing. In my view model, I have a property of type int that maps to a field where the user is to specify a number. I have no validation attributes attached to this property (yet), but xVal seems to automatically add jquery.validation data type validation such that if I put in "TEST", I get a message that says "Please enter a whole number." While I appreciate the automatic data type check, since NHibernate validation doesn't have a DataType attribute, I find myself in a peculiar position that I am unable to either a) disable this check or b) customize the error message.

Suggestions?