I wanted to follow the guidelines described in MySql documentation to make use of connection polling by calling all my queries using MySqlHelper. This is the doc:
"One approach that simplifies things is to avoid manually creating a MySqlConnection object. Instead use the overloaded methods that take a connection string as an argument. Using this approach, Connector/NET will automatically create, open, close and destroy connections, using the connection pooling system for best performance"
"Instead of manually creating MySqlCommand objects, you can use the static methods of the MySqlHelper class. These take a connection string as an argument, and they fully support connection pooling."
However when I wanted to use MySqlHelper to call a stored procedure with the function ExecuteNonQuery there is no way to provide the CommandType in order to call it. I have already my implementation working with Commands but I think is a pity that this helper class has such shortcoming.
I found and agree with this old posts describing this same situation:
http://forums.mysql.com/read.php?38,366105,366105
http://forums.mysql.com/read.php?47,366055,366055
but for some reason these are closed.
I appreciate if someone can tell me if there are plans in the future to enhance the helper to support this feature.
I am using VS2010 and the last version of the connector: 6.3.6.
"One approach that simplifies things is to avoid manually creating a MySqlConnection object. Instead use the overloaded methods that take a connection string as an argument. Using this approach, Connector/NET will automatically create, open, close and destroy connections, using the connection pooling system for best performance"
"Instead of manually creating MySqlCommand objects, you can use the static methods of the MySqlHelper class. These take a connection string as an argument, and they fully support connection pooling."
However when I wanted to use MySqlHelper to call a stored procedure with the function ExecuteNonQuery there is no way to provide the CommandType in order to call it. I have already my implementation working with Commands but I think is a pity that this helper class has such shortcoming.
I found and agree with this old posts describing this same situation:
http://forums.mysql.com/read.php?38,366105,366105
http://forums.mysql.com/read.php?47,366055,366055
but for some reason these are closed.
I appreciate if someone can tell me if there are plans in the future to enhance the helper to support this feature.
I am using VS2010 and the last version of the connector: 6.3.6.