How to extend Data Access Block ??????

Topics: Data Access Application Block
Jan 20, 2007 at 7:54 AM
I want to extend the data access block. I have to execute some events and functions before/after the execution of Data access functions like iwant to run pre save and post save events.

I want to do his by extending the Data access black
I hve extended the database class like





namespace ExtendedEnterpriseLibrary.Data
{
public class Database //: Microsoft.Practices.EnterpriseLibrary.Data.Database
{
public Database()//(string connectionString, System.Data.Common.DbProviderFactory testInstance)
//: base(connectionString, testInstance)
{

}




But when i am using ExtendedEnterpriseLibrary.Data.Database to execute execute reader its giving type error.

Please give instructions how to extend data access Block
Jan 20, 2007 at 7:59 AM
sorry code is

namespace ExtendedEnterpriseLibrary.Data
{
public class Database : Microsoft.Practices.EnterpriseLibrary.Data.Database
{
public Database()(string connectionString, System.Data.Common.DbProviderFactory testInstance)
: base(connectionString, testInstance)
{

}
Jan 22, 2007 at 6:07 PM
I answered this in your other post:

http://www.codeplex.com/entlib/Project/DisplayThread.aspx?ForumId=2964&ThreadId=3721

Regards,

Dave

___________________________________

David Hayden
Microsoft MVP C#
http://www.davidhayden.com/