Here is a good quickie on how to implement listeners:
http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html
I use the following code to get the table name of the current entity
being saved or updated:
string tablename =
((ILockable)@event.Entry.Persister).RootTableName.ToLower();
On Mar 23, 1:49 pm, Sal <[email protected]> wrote:
> I have a question about auditing. Most auditing examples use one audit
> table to track changes. However, we need one audit table per "regular"
> table. In other words, tblCustomer would also have
> tblCustomer_History. I can't figure out how to use a listener, and on
> update populate the history table as well. Any ideas? I'd hate to fall
> back on SQL Server triggers.
--
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.