943,824 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2354
  • ASP.NET RSS
Dec 25th, 2008
0

Where can I find "DBCommandWrapper"

Expand Post »
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:

asp.net Syntax (Toggle Plain Text)
  1. Imports System.Data
  2. Imports Microsoft.Practices.EnterpriseLibrary.Data
  3. Imports Microsoft.Practices.EnterpriseLibrary.Data.Sql

I wrote the following code:

asp.net Syntax (Toggle Plain Text)
  1. Dim db As Database = DatabaseFactory.CreateDatabase()
  2. 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.
Last edited by peter_budo; Dec 29th, 2008 at 11:25 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
brightline is offline Offline
57 posts
since Feb 2008
Dec 25th, 2008
0

Re: Where can I find "DBCommandWrapper"

Use System.Data.Common.DbCommand instead.
Reputation Points: 31
Solved Threads: 7
Light Poster
iDeveloper is offline Offline
49 posts
since Jul 2008
Feb 10th, 2011
-1
Re: Where can I find "DBCommandWrapper"
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!)
Reputation Points: 7
Solved Threads: 0
Newbie Poster
gtaalbi is offline Offline
1 posts
since Feb 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: need suggestion for Final year Project
Next Thread in ASP.NET Forum Timeline: Asp.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC