/// <summary> /// 通用删除 /// </summary> /// <param name="tblName">表名</param> /// <param name="where ">where</param> public bool Delect(string tblName, string where) { SqlParameter[] Parameters = new SqlParameter[] { new SqlParameter("@tblName", SqlDbType.VarChar, 255), new SqlParameter("@where", SqlDbType.VarChar, 500), }; Parameters[0].Value = tblName; Parameters[1].Value = where; return(DBHelpers.RunProcLob("DelectCommon", Parameters)); }
public bool Update(int psid, int IsChekUp) { SqlParameter[] parameters = { new SqlParameter("@Psid", SqlDbType.Int), new SqlParameter("@IsChekUp", SqlDbType.Int), }; parameters[0].Value = psid; parameters[1].Value = IsChekUp; return(DBHelpers.RunProcLob("RCUpdate", parameters)); }