Bug #27313 | Cannot instantiate MySql.Data.MySqlClient.MySqlParameterCollection | ||
---|---|---|---|
Submitted: | 21 Mar 2007 0:38 | Modified: | 21 Mar 2007 13:49 |
Reporter: | Yvan Rodrigues | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 5.0.5 | OS: | Windows (Windows XP) |
Assigned to: | CPU Architecture: | Any | |
Tags: | Constructor, internal, MySqlParameterCollection, public |
[21 Mar 2007 0:38]
Yvan Rodrigues
[21 Mar 2007 12:24]
Reggie Burnett
This is not a bug. You do not need to instantiate a MySqlParameterCollection since MySqlCommand provides one for you.
[21 Mar 2007 13:49]
Yvan Rodrigues
ok, this must have changed in 5.0.3 or 5.0.4 I had built a custom commandbuilder class based on http://www.codeproject.com/cs/database/CustomCommandBuilder.asp that required instantiation.
[10 Jan 2012 1:04]
Hugo Vares
You can use: MySqlParameterCollection mpc = new MySqlCommand().Parameters;