App works but UPDATE through WPF does not work
string sqlIns = "UPDATE Team_table SET result1 = '4:2' where name1=@Team1 and name2=@Team1";
string Team1_string = Team1.Text;
// Team1, Team2, result1, result2 is the name of TextBox controls
cmdIns.Parameters.AddWithValue("@Team1", Team1_string);
string Team2_string = Team2.Text;
cmdIns.Parameters.AddWithValue("@Team2", Team2_string);
string result1_string = Result1.Text;
cmdIns.Parameters.AddWithValue("@result1", result1_string);
How to do it work?
TTKZS. Also, why don't useusingfor disposables?