예제 #1
0
 /// <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));
 }
예제 #2
0
 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));
 }