I'm working on some code that hit the database several times through NHibernate. I'd like to see how I can write a procedure.
To ease my work, this is what I want:
- Initiate the operation from the UI
- Log all the request to the DB from the beginning to the end.
- Know the statements that the DB execute for each request.
I'd like to log information from the prospective of the DB. I tried before to follow all the codes that make request to the database.
Thank for helping