问题
could you provide some samples for audit loggin using NHibernate (ASP.Net+C# codd, not java code)
回答1:
Event Listeners are better for audit info than Interceptors. Here's a great example from Ayende's blog.
回答2:
I've most often seen this done with interceptors. There are plenty of blog postings to be found through Google about implementing interceptors for auditing, like this one.
来源:https://stackoverflow.com/questions/857234/audit-logging-nhibernate