How to view the final "CommandText" with the parameters added?

1
MySqlCommand comm = new MySqlCommand("", conexao);
comm.CommandText = ("SELECT @select FROM @from WHERE @where LIKE '@like'");
comm.Parameters.AddWithValue("@select", select);
comm.Parameters.AddWithValue("@from", from);
comm.Parameters.AddWithValue("@where", where);
comm.Parameters.AddWithValue("@like", like);

If I give a Debug.WriteLine(comm.CommandText) my return is:

"SELECT @select FROM @from WHERE @where LIKE '@like'" .

How can I see the CommandText of the MYSQL connector for C # with the parameters added?

    
asked by anonymous 30.01.2018 / 14:23

0 answers