.Add vs .AddWithValue using MySql.Data.MySqlClient in ADO.net
Posted by: Mary O'Brien
Date: December 11, 2020 09:34PM

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?

Options: ReplyQuote


Subject
Written By
Posted
.Add vs .AddWithValue using MySql.Data.MySqlClient in ADO.net
December 11, 2020 09:34PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.