[nhusers] Re: NHibernate Validator custom message

2009-04-21 Thread Lars Zeb
Sorry, Dario, I read the unit tests and understand now. On Apr 15, 1:55 pm, Lars Zeb wrote: > I have created a customer class validator and it works OK. Using third- > party software, it validates a postal address. This address validator > uses Address, City, State and Zip properties. > > Instea

[nhusers] Re: NHibernate Validator custom message

2009-04-21 Thread Lars Zeb
] On Behalf Of Dario Quintana Sent: Saturday, April 18, 2009 2:43 PM To: nhusers@googlegroups.com Subject: [nhusers] Re: NHibernate Validator custom message ${propertyname} is a new way to interpolate with NHV. It will interpolate the value of the property into your message, the property exists

[nhusers] Re: NHibernate Validator custom message

2009-04-18 Thread Dario Quintana
ContextCallback callback, Object state) > > at System.Threading.ThreadHelper.ThreadStart() > > InnerException: *From:* nhusers@googlegroups.com [mailto: > nhus...@googlegroups.com] *On Behalf Of *Dario Quintana > *Sent:* Wednesday, April 15, 2009 2:40 PM > *To:* nhusers@

[nhusers] Re: NHibernate Validator custom message

2009-04-18 Thread Lars Zeb
nContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: From: nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] On Behalf Of Dario Quintana Sent: Wednesday, April 15, 2009 2:40 PM To: nhusers@googlegroups.com Subject:

[nhusers] Re: NHibernate Validator custom message

2009-04-15 Thread Dario Quintana
Hi Right now I think you can't do that, for that matter, but I have something in mind. Will review this later. Maybe you can workaround this using the NHV1.2(alpha but stable) doing something like this: "${PropertyWithMessage}" And your class has a property *PropertyWithMessage* as string. I kn