• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

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?




0
craigdev
Asked:
craigdev
1 Solution
 
Bob LearnedCommented:
Provide your own method for LoadDataSet, instead of exposing the Database.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now