locked
command reader RRS feed

  • Question

  • Error 1 'System.Data.SqlClient.SqlDataReader' does not contain a definition for 'cmd' and no extension method 'cmd' accepting a first argument of type 'System.Data.SqlClient.SqlDataReader' could be found (are you missing a using directive or an assembly reference)
    • Moved by Jonathan Aneja -- MSFT Friday, September 10, 2010 9:02 PM (From:ADO.NET Entity Framework and LINQ to Entities (Pre-Release))
    Thursday, September 9, 2010 12:54 PM

Answers

  • Add a reference to System.Data.dll.

    • Marked as answer by liurong luo Wednesday, September 15, 2010 11:31 AM
    Tuesday, September 14, 2010 9:56 AM

All replies

  • Please post code snippet that is resulting in this error.

     

     

    Friday, September 10, 2010 11:46 PM
  • Add a reference to System.Data.dll.

    • Marked as answer by liurong luo Wednesday, September 15, 2010 11:31 AM
    Tuesday, September 14, 2010 9:56 AM