There are Messages already in 7-8 languages in NH.Validator and the answer
is looking in the tests :).

You can take a look at the downloads section in nhforge
http://nhforge.org/media/

Or you can go to the nhcontrib site to download the sources:
http://nhcontrib.wiki.sourceforge.net/

you should read the doc, and code...when you did you are invited to ask
again if something is not clear.

There are same examples there also.

Gustavo.

On Wed, Apr 22, 2009 at 11:24 PM, shapper <[email protected]> wrote:

>
> Hello,
>
> I am going to use NHibernate Validator on my project. I have the
> following example:
>
>  [Min(18, Message="You are to young!")]
>  public int Age
>  {
>    get { return age; }
>    set { age = value; }
>  }
>
> How can I localize the error messages?
>
> And can I create something like a ValidatorClass that validates a
> class model?
>
> For example: PostValidator would validate Post class.
>
> This is just an idea ... could someone point me a proper way to
> validate a model?
>
> Thanks,
> Miguel
>
> P.S: Where can I download the Validator dll?
>         I went to http://www.nhibernate.org/index.html but the site
> is down.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to