Solved

Enterprise Library Data Application Blocks - logging

Posted on 2008-10-15
1
138 Views
Last Modified: 2012-05-05
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
Comment
Question by:craigdev
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
Comment Utility
Provide your own method for LoadDataSet, instead of exposing the Database.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now