Thanks! Hadn't realized that this "event system" existed until I read up on Validator. Will study it more closely.
/Oskar 2009/3/19 Dario Quintana <[email protected]> > Use NHibernate.Validator, you can integrate it with NH. > > On Thu, Mar 19, 2009 at 4:30 PM, Oskar Berggren > <[email protected]>wrote: > >> From the reference manual I learn that I can let my entity classes inherit >> from IValidatable, and thus prevent "invalid" instances from being >> persisted. However, I don't want my domain objects to have a hard dependency >> in NHibernate. Supposedly I can define a similar interface myself as part of >> my domain layer or a very small support layer. But can I make NHibernate >> pick up on this? Can I inject in some way my own "Validator" which can >> examine each entity right before it's persisted and do it's thing? >> >> /Oskar >> >> >> >> >> > > > -- > Dario Quintana > http://darioquintana.com.ar > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
