could you provide some samples for audit loggin using NHibernate (ASP.Net+C# codd, not java code)
Event Listeners are better for audit info than Interceptors. Here's a great example from Ayende's blog.
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