2010/8/5 Jérôme Avoustin <[email protected]>

> That's exactly what I'm doing, but I prefer using dependecy injection,
> like in Fabio's link.
>


Yes but injecting a crude "ValidatorEngine" is like injecting SessionFactory
everywhere...
I prefer to inject IEntityValidator, you don't have to write any code and
even you can switch later to Validation App block, DataAnnotations, Castle
Validations, etc

http://code.google.com/p/unhaddins/source/browse/#svn/trunk/uNhAddIns/uNhAddIns.NHibernateValidator

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