//删除 public static bool Delete(int EmployeeId) { string sql = string.Format("delete from T_Employee where EmployeeId='{0}'", EmployeeId); return(DBhelp.Write(sql)); }
//添加员工--直接向T_Employee中加入 public static bool Add(T_Employee emp) { string sql = string.Format("insert into T_Employee values('{0}','{1}','{2}','{3}','{4}')", emp.EmployeeName, emp.ImageUrl, emp.DeptId, emp.Sex, emp.Age); return(DBhelp.Write(sql)); }