私はウェブサービスを持っています
[WebMethod]
public void Insert(int node, int date, int time, int rtt)
{
string query = "INSERT INTO pingresult (node, date, time, rtt) VALUES('"+node+"', '"+date+"', '"+time+"', '"+rtt+"')";
if (this.OpenConnection() == true)
{
MySqlCommand cmd = new MySqlCommand(query, connection);
cmd.ExecuteNonQuery();
this.CloseConnection();
}
}
そして私が方法を使おうとしたとき
public void Main(string[] args)
{
int node, date, time, rtt;
PingService.Service1 s1 = new ConsoleApplication1.PingService.Service1();
node = 1;
date = 090512;
time = 1720;
rtt = 2222;
s1.Insert(node,date,time, rtt);
}
そして私はこのエラー
を受け取りましたメソッド「挿入」のオーバーロードは「4」引数を取りません
何か案が?私はここ
で解決策を探しましたが、それが何を意味するのか本当にわかりません