Thanks, I had heard about this but thought it could only do very
simple validations until I seen the example where it talked about
writing your own constraints in the documentation here:
http://nhforge.org/wikis/validator/nhibernate-validator-1-0-0-documentation.aspx

Looks like this is exactly what I need to do all my validation logic.

Thanks again, you've been a great help Fabio.

On Aug 18, 3:27 pm, Fabio Maulo <[email protected]> wrote:
> Zero 
> work.http://fabiomaulo.blogspot.com/2009/10/nhibernatevalidator-nhibernate...
>
> <http://fabiomaulo.blogspot.com/2009/10/nhibernatevalidator-nhibernate...>The
> seriehttp://fabiomaulo.blogspot.com/search/label/Validator
>
>
>
>
>
> On Wed, Aug 18, 2010 at 5:20 PM, MattO <[email protected]> wrote:
> > In my old data access layer I had my own Update method.  This method
> > would perform the SQL necessary to update the object.  It would also
> > do validation on the object before saving it to the database.
>
> > For instance I have a rule that I can not update an entity if a
> > certain condition is invalid.  The condition that I am checking
> > requires another call to the database before I save the record.
>
> > I'm assuming I will either have to use the Interceptors and Event
> > system in nHibernate to capture all methods that could save a value to
> > the database (transaction commit, Flush, SaveOrUpdate, Save, Update,
> > etc).  Is that true?  If so seems like a lot of work since there are
> > so many methods I would have to capture to validate my entity before
> > persisting the changes to the database.
>
> > --
> > 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]<nhusers%[email protected]­>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nhusers?hl=en.
>
> --
> Fabio Maulo- Hide quoted text -
>
> - Show quoted text -

-- 
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