Hi Fabio,

Thanks for your help, you raised a couple of points which I think are
probably the answers I'm looking for...

>
> > The problem is that if the validation fails, the person object is
> > still saved when the transaction is committed on end_request.
>
> Sure ? Why you are calling session.Update before validate the entity ?
> Or why you are not using a validation in a NH-Event listener ?

I think moving my validation to an NH event could solve this issue for
me, I will look into this

>
> The UoW (nh-session) is dirty when at least one of his object is dirty.
> You can turn-off the auto-flush and manage the flush by your self.
>
> The other option is turn-off the dirty-check overriding the default
> listener.
>
> --
> Fabio Maulo

Can you give me some pointers on how to override the default dirty
check listener, this sounds like something I might want to try...

Thanks

Andrew

Reply via email to