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
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