Hi!
I'm using CSLA Business Obects with NHibernate.
So I extend every object. In business object there is Error property, that shows error message based business rules, in ErrorProvider.
When I update some object and execute updateorsave command all objects are updated, and that's beacause business rules have some errors.
So Hibernate senses property change on Error property and puts up modifiedd flag.
One option is to use fields not properties, but then there are some fields that do not have anything to do with NHibernate (like object stack for undo purposes). Is there any attribute for this?
Or is there some another way, ie on Error propety change to validate isChanged value. In this case witch interface I should implement?
|