I'm porting a Windows application from MS SQL Server to MySql. I'm using MySql 5.1.41 and MySql Connector/NET 6.2.3. I've successfully created my database, tables and ported all my stored procedures but have hit a problem porting my c# database access code. When I attempt to compile the code I get the error message:
'MySql.Data.MySqlClient.MySqlDbType' does not contain a definition for 'Char'
The code (or any line of code that tries to use MySqlDbType.Char) that causes the problem is shown below:
cmd.Parameters.Add(new MySqlParameter("@OutwardCode", MySqlDbType.Char, 4)).Value = outwardCode;
I've searched the forums and the net for any matches and found Bug #17749. This describes my issue and other posting imply the issue has been fixed but it appears not for me.
Any help would be appreciated.
Cheers
Keith Balaam
'MySql.Data.MySqlClient.MySqlDbType' does not contain a definition for 'Char'
The code (or any line of code that tries to use MySqlDbType.Char) that causes the problem is shown below:
cmd.Parameters.Add(new MySqlParameter("@OutwardCode", MySqlDbType.Char, 4)).Value = outwardCode;
I've searched the forums and the net for any matches and found Bug #17749. This describes my issue and other posting imply the issue has been fixed but it appears not for me.
Any help would be appreciated.
Cheers
Keith Balaam