示例#1
0
        // 公用静态方法,修改一条记录 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;
            }
        }
示例#2
0
 // 公用静态方法,修改一条记录 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;
     }
 }