예제 #1
0
 // 公用静态方法,删除一条记录 DeleteLianXiXinXi
 public static bool DeleteEntity(LianXiXinXiBusEntity obj)
 {
     if (obj == null || obj.IsEmpty)
     {
         return false;
     }
     LianXiXinXiDelete exec = new LianXiXinXiDelete();
     try
     {
         exec.ReceiveParameter(obj);
         exec.ExecNoQuery();
         return true;
     }
     catch (Exception ex)
     {
         //throw ex;
         return false;
     }
     finally
     {
         obj = null;
     }
 }
예제 #2
0
 // 物理删除由主键userID指定的一条记录 DeleteLianXiXinXi
 public bool Delete(int userID)
 {
     LianXiXinXiDelete exec = new LianXiXinXiDelete();
     try
     {
         exec.UserID = userID;
         exec.ExecNoQuery();
         return true;
     }
     catch (Exception ex)
     {
         //throw ex;
         return false;
     }
     finally
     {
         exec = null;
     }
 }