应用程序工作,但通过 WPF 更新不起作用
string sqlIns = "UPDATE Team_table SET result1 = '4:2' where name1=@Team1 and name2=@Team1";
string Team1_string = Team1.Text;
// Team1,Team2,result1,result2是TextBox控件的名字
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);
如何做到这一点?