Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 10th, 2007, 06:46 PM
Registered User
Join Date: Feb 2007
Location: , , USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default MySqlDataReader in WebSite Programming

I am using as a model Marco Bellinaso's ASP.NET 2.0 WebSite Programming. However, instead of a SqlClient layer I have a MySqlClient layer.

The statement: GetXCollectionFromReader(ExecuteReader(cmd));

will not compile. The message is 'Cannot convert from MySqlCommand to DbCommand. (cmd is of type MySqlCommand)

Are there any known issues in trying to implement a MySqlClient with Marco's structure? MySqlDataReader implements IDataReader so I'm not sure where the problem lies.

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebSite Programming xiaoxinge2008 ADO.NET 3 November 16th, 2004 03:59 AM
PHP MySQL Website Programming pugwash All Other Wrox Books 1 December 13th, 2003 10:53 AM
PHP MySQL Website Programming dudu Wrox Book Feedback 3 August 10th, 2003 12:17 PM
PHP MySQL Website Programming P-D-S robmorrish All Other Wrox Books 1 August 5th, 2003 01:29 AM
PHP MySQL Website Programming P-D-S vicsam All Other Wrox Books 1 July 27th, 2003 08:52 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.