在这里,我在我的 webmatrix 表单中编写更新查询,该表单运行正确,但我想使用存储过程代替查询,那么我该如何编写呢?
var UpdateQuery = "UPDATE Reg_tb SET FirstName = @0, LastName = @1, UserName = @2, Password = @3 WHERE UID = @4";
db.Execute(UpdateQuery, FirstName, LastName, UserName, Password, Userid);