// 公用静态方法,修改一条记录 UpdateMeiTan public static bool UpdateEntity(MeiTanBusEntity obj) { if (obj == null || obj.IsEmpty) { return(false); } MeiTanUpdate exec = new MeiTanUpdate(); try { exec.ReceiveParameter(obj); exec.ExecNoQuery(); return(true); } catch (Exception ex) { //throw ex; return(false); } finally { obj = null; } }
// 公用静态方法,修改一条记录 UpdateMeiTan public static bool UpdateEntity(MeiTanBusEntity obj) { if (obj == null || obj.IsEmpty) { return false; } MeiTanUpdate exec = new MeiTanUpdate(); try { exec.ReceiveParameter(obj); exec.ExecNoQuery(); return true; } catch (Exception ex) { //throw ex; return false; } finally { obj = null; } }