Пример #1
0
 // 公用静态方法,删除一条记录 DeleteMeiZhong
 public static bool DeleteEntity(MeiZhongBusEntity obj)
 {
     if (obj == null || obj.IsEmpty)
     {
         return false;
     }
     MeiZhongDelete exec = new MeiZhongDelete();
     try
     {
         exec.ReceiveParameter(obj);
         exec.ExecNoQuery();
         return true;
     }
     catch (Exception ex)
     {
         //throw ex;
         return false;
     }
     finally
     {
         obj = null;
     }
 }