Enterprise Library Data Application Blocks - logging

Hi, I want to place logging around the Database class to record the stored procedure name and execution time....

In our code the stored procedures are generally called as follows:

DatabaseConnection(DbName).LoadDataSet(spName, ds, TblName, params);

The DatabaseConnection function is:

        protected Database DatabaseConnection(string databaseName)
            return DatabaseFactory.CreateDatabase(databaseName);

What I want to do is raise events when the LoadDataSet starts and finishes. Any ideas how to apply this?

Who is Participating?
Bob LearnedConnect With a Mentor Commented:
Provide your own method for LoadDataSet, instead of exposing the Database.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.