public static ExecuteNonQuery ( |
||
connection | A valid SqlConnection | |
commandType | CommandType | The CommandType (stored procedure, text, etc.) |
commandText | string | The stored procedure name or T-SQL command |
Résultat | int |
public void DeleteUser(int id) { SqlHelper.ExecuteNonQuery(cs, "DeleteUser", id); }
public void UpdateUser(int userId, string name, string lastname, string phone, string password, string city, string role, string email) { SqlHelper.ExecuteNonQuery(cs, "UpdateUser", userId, name, lastname, phone, password, city, role, email); }
public void AddUser(string name, string lastname, string phone, string password, string city, string role, string email) { SqlHelper.ExecuteNonQuery(cs, "AddUser", name, lastname, phone, password, city, role, email); }