NHibernate IPreUpdateEventListener & IPreInsertEventListener (ayende.com)
submitted by
ferventcoder(836) 2 years, 3 months ago
NHibernate’s listeners architecture bring with it a lot of power to the game, but understanding how to use it some of the listeners properly may require some additional knowledge. In this post, I want to talk specifically about the pre update hooks that NHibernate provides.
Those allow us to execute our custom logic before the update / insert is sent to the database. On the face of it, it seems like a trivial task, but there are some subtleties that we need to consider when we use them.
|category: Open Source
|Views: 96
tags:
OpenSource another
Everyones tags:
Your Tags: