Thanks, that's just what I needed :)  However I don't like the idea of
throwing an exception because then you only get the first error rather
than a collection of all errors.  Or will I have to implement
something myself?


> There is a not very known interface called NHibernate.Classic.IValidatable
> that describes a single method, Validate. If your entities implement this
> interface, this method will be called upon Save or Update, and you can
> perform your own validation there. If the entity is not valid, you can
> throw an exception and the saving will be aborted.

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