I use the .Add method consistently to add parameters to the ParametersCollection. Recently, it was pointed out to me that .AddWithValue is preferred in MySql. MySQL actively advocate and promote its use
I accepted this until I realized that the advice was for a particular provider, MySqlConnector. I normally use MySql.Data.MySqlClient. I have not found any information on recommendations on .Add vs .AddWithValue for this provider.
Which is preferred for MySql.Data.MySqlClient?
I accepted this until I realized that the advice was for a particular provider, MySqlConnector. I normally use MySql.Data.MySqlClient. I have not found any information on recommendations on .Add vs .AddWithValue for this provider.
Which is preferred for MySql.Data.MySqlClient?