954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Where can I find "DBCommandWrapper"

I am using Enterprise Library 4.1(October 2008)
and I am trying to use DBCommandWrapper but I can't find it
I had added the following references:

Imports System.Data
Imports Microsoft.Practices.EnterpriseLibrary.Data
Imports Microsoft.Practices.EnterpriseLibrary.Data.Sql


I wrote the following code:

Dim db As Database = DatabaseFactory.CreateDatabase()
Dim objDBCommandWrapper As DBCommandWrapper = db.GetStoredProcCommandWrapper(sqlCommand)


but when I compile the code, the following error comes up:
Type "DBCommandWrapper" is not defined.

I want help to solve this error.

Thanks in advance.

brightline
Junior Poster in Training
60 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Use System.Data.Common.DbCommand instead.

iDeveloper
Light Poster
49 posts since Jul 2008
Reputation Points: 31
Solved Threads: 7
 

dbCommandWrapper is deprecated, that was from Enterprise Library 1.1, now it is a full object EL 2.0+), use dbCommand (found in Using System.Data.Common; or Imports System.Data.Common for vb.net!)

gtaalbi
Newbie Poster
1 post since Feb 2011
Reputation Points: 7
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You