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