DBCommandWrapper

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SGVsZW4gVHJpbQ==?=

    #1

    DBCommandWrapper

    I am developing a web service in C# in Visual Studio 2005. I am trying to
    use the Enterprise Library for data. But it will not recognise
    DBCommandWrappe r. I have added all the relevant references to the EL
    Configuration, Data Access, etc and I have this at the top:

    using Microsoft.Pract ices.Enterprise Library.Common;
    using Microsoft.Pract ices.Enterprise Library.Configu ration;
    using Microsoft.Pract ices.Enterprise Library.Data;
    using Microsoft.Pract ices.Enterprise Library.Data.Sq l;
    using Microsoft.Pract ices.Enterprise Library.Data.Co nfiguration;


    It gives this error message at DBCommandWrappe r:
    The type or namespace name 'DBCommandWrapp er' could not be found (are you
    missing a using directive or an assembly reference?)

    Can you tell me what I have missed, please?

    Thanks,
    Helen

  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: DBCommandWrappe r

    http://msdn.microsoft.com/msdnmag/is...10/DataPoints/

    (found by typing 'dbcommandwrapp er "enterprise library"' into my favorite
    search engine)
    --Peter
    Recursion: see Recursion
    site: http://www.eggheadcafe.com
    unBlog: http://petesbloggerama.blogspot.com
    BlogMetaFinder: http://www.blogmetafinder.com



    "Helen Trim" wrote:
    I am developing a web service in C# in Visual Studio 2005. I am trying to
    use the Enterprise Library for data. But it will not recognise
    DBCommandWrappe r. I have added all the relevant references to the EL
    Configuration, Data Access, etc and I have this at the top:
    >
    using Microsoft.Pract ices.Enterprise Library.Common;
    using Microsoft.Pract ices.Enterprise Library.Configu ration;
    using Microsoft.Pract ices.Enterprise Library.Data;
    using Microsoft.Pract ices.Enterprise Library.Data.Sq l;
    using Microsoft.Pract ices.Enterprise Library.Data.Co nfiguration;
    >
    >
    It gives this error message at DBCommandWrappe r:
    The type or namespace name 'DBCommandWrapp er' could not be found (are you
    missing a using directive or an assembly reference?)
    >
    Can you tell me what I have missed, please?
    >
    Thanks,
    Helen
    >

    Comment

    • =?Utf-8?B?SGVsZW4gVHJpbQ==?=

      #3
      RE: DBCommandWrappe r

      Thanks but I had already found that site and it doesn't answer my question.

      Helen

      "Peter Bromberg [C# MVP]" wrote:
      http://msdn.microsoft.com/msdnmag/is...10/DataPoints/
      >
      (found by typing 'dbcommandwrapp er "enterprise library"' into my favorite
      search engine)
      --Peter
      Recursion: see Recursion
      site: http://www.eggheadcafe.com
      unBlog: http://petesbloggerama.blogspot.com
      BlogMetaFinder: http://www.blogmetafinder.com
      >
      >
      >
      "Helen Trim" wrote:
      >
      I am developing a web service in C# in Visual Studio 2005. I am trying to
      use the Enterprise Library for data. But it will not recognise
      DBCommandWrappe r. I have added all the relevant references to the EL
      Configuration, Data Access, etc and I have this at the top:

      using Microsoft.Pract ices.Enterprise Library.Common;
      using Microsoft.Pract ices.Enterprise Library.Configu ration;
      using Microsoft.Pract ices.Enterprise Library.Data;
      using Microsoft.Pract ices.Enterprise Library.Data.Sq l;
      using Microsoft.Pract ices.Enterprise Library.Data.Co nfiguration;


      It gives this error message at DBCommandWrappe r:
      The type or namespace name 'DBCommandWrapp er' could not be found (are you
      missing a using directive or an assembly reference?)

      Can you tell me what I have missed, please?

      Thanks,
      Helen

      Comment

      • Jon Skeet [C# MVP]

        #4
        Re: DBCommandWrappe r

        On Oct 11, 12:52 pm, Helen Trim <HelenT...@disc ussions.microso ft.com>
        wrote:
        Thanks but I had already found that site and it doesn't answer my question.
        Have you seen this one?

        A broad category of Microsoft tools, languages, and frameworks for software development. Designed to support developers in building, debugging, and deploying applications across various platforms.


        Jon


        Comment

        • =?Utf-8?B?SGVsZW4gVHJpbQ==?=

          #5
          Re: DBCommandWrappe r

          Thanks, I have made some progress with this.

          Helen


          "Jon Skeet [C# MVP]" wrote:
          On Oct 11, 12:52 pm, Helen Trim <HelenT...@disc ussions.microso ft.com>
          wrote:
          Thanks but I had already found that site and it doesn't answer my question.
          >
          Have you seen this one?
          >
          A broad category of Microsoft tools, languages, and frameworks for software development. Designed to support developers in building, debugging, and deploying applications across various platforms.

          >
          Jon
          >
          >
          >

          Comment

          • sloan

            #6
            Re: DBCommandWrappe r

            ''

            What version of dotnet/visual studio are you using.

            From your previous post, I think its
            VS2005
            DotNet 2.0.

            Ok...

            Which version of the EnterpriseLibra ry are you using?

            There is a release for 1.1 (VS2003) and there is a seperate release for 2.0
            (VS2005).

            Which are you using?

            The reason I was, is because there was a 1.1 object, which was deprecated in
            the 2.0 library.

            http://msdn2.microsoft.com/en-us/lib...dbcommand.aspx

            The quickest way to determine which you have is

            is your
            ExecuteNonQuery
            ExecuteReader
            methods...are they on the Database object, or the DBCommandWrappe r object?


            If you are using the 2.0 library, then you need to add this using statement

            using System.Data.Com mon;// That's because that is where DBCommand
            exists....its a "real" .Net object now.


            ....


            "Helen Trim" <HelenTrim@disc ussions.microso ft.comwrote in message
            news:E558F98A-C306-4927-8F09-10C235EED80D@mi crosoft.com...
            >I am developing a web service in C# in Visual Studio 2005. I am trying to
            use the Enterprise Library for data. But it will not recognise
            DBCommandWrappe r. I have added all the relevant references to the EL
            Configuration, Data Access, etc and I have this at the top:
            >
            using Microsoft.Pract ices.Enterprise Library.Common;
            using Microsoft.Pract ices.Enterprise Library.Configu ration;
            using Microsoft.Pract ices.Enterprise Library.Data;
            using Microsoft.Pract ices.Enterprise Library.Data.Sq l;
            using Microsoft.Pract ices.Enterprise Library.Data.Co nfiguration;
            >
            >
            It gives this error message at DBCommandWrappe r:
            The type or namespace name 'DBCommandWrapp er' could not be found (are you
            missing a using directive or an assembly reference?)
            >
            Can you tell me what I have missed, please?
            >
            Thanks,
            Helen
            >

            Comment

            Working...