Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

Trouble with MySqlCommandBuilder.DeriveParameters (no replies)

$
0
0
Hi everybody,

i shortly altered my SQL Server db class to work with mysql. Everything works fine, except using MySqlCommandBuilder.DeriveParameters to get the parameters of a stored procedure. I always encounter an InvalidCastException. Stored procedures without parameters are not affected.

MySqlConnection connection = new MySqlConnection(Config.ConnectionStringSql);

using (MySqlCommand command = new MySqlCommand(storedProcedure, connection))
{
command.CommandType = System.Data.CommandType.StoredProcedure;
command.Connection.Open();

at this line -> MySqlCommandBuilder.DeriveParameters(command);

I am using MySQL Community Server 6.5.15 and Connector/Net 6.9.6.0.


Any idea what is the source of this issue ?

best regards

Andreas Neuss

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>