I am sending parameters from c# to the mysql database. Problem is that I have decimal value in c# ( for example : 45.335 ) but when I am sending it to the mysql it keeps sending it in this format ( 45,335 ) What am I doing wrong?
MySqlConnection con = null;
MySqlCommand cmd = null;
con = new MySqlConnection("server=localhost;database=data;uid=root;pwd=*****");
con.Open();
cmd = new MySqlCommand("insert into data values (null, ?ParName , ?Parname2);", con);
cmd.Parameters.AddWithValue("?ParName", OSGconv.deciLat);
cmd.Parameters.AddWithValue("?Parname2", OSGconv.deciLon);
cmd.ExecuteNonQuery();
con.Close();
}