NHibernate: why ILifecycle.OnUpdate is not called every time?

NHibernate_reference.pdf, page 26:

Note that ILifecycle.OnUpdate() is not called every time the object's persistent state is updated. It is called only when a transient object is passed to ISession.Update().

Why it design link that?

Answers


ILifecycle is deprecated; as James L wrote, you should use an IInterceptor implementation instead. My interpretation of the documentation you quoted is that the OnUpdated event is fired from the Update method only. That is, the event was designed to notify subscribers that the Update method had been called and nothing more.


You should use IInterceptor instead


Need Your Help

How can I use JQuery to post JSON data?

jquery ajax json post http-post

I would like to post Json to a web service on the same server. But I don't know how to post Json using JQuery. I have tried with this code:

white screen to implement ngCordova

angularjs cordova ionic

Had in my project implemented ngCordova, besides, I added ngCordovaOauth to generate login with facebook and twitter in my application this is where the problem came. After installing bower and the...