// 根据主键ID返回指定的GongShiXingZhi实体
 public static GongShiXingZhiBusEntity GetEntity(int ID)
 {
     GongShiXingZhiByPK exec = new GongShiXingZhiByPK();
     exec.ID = ID;
     GongShiXingZhiBusEntity obj = new GongShiXingZhiBusEntity();
     obj.MetaDataTable = exec.ExecDataTable();
     return obj;
 }
 // 公用静态方法,插入一条记录 InsertGongShiXingZhi
 public static bool InsertEntity(GongShiXingZhiBusEntity obj)
 {
     GongShiXingZhiInsert exec = new GongShiXingZhiInsert();
     try
     {
         exec.ReceiveParameter(obj);
         exec.ExecNoQuery();
         return true;
     }
     catch (Exception ex)
     {
         //throw ex;
         return false;
     }
     finally
     {
         obj = null;
     }
 }
 // 公用静态方法,修改一条记录 UpdateGongShiXingZhi
 public static bool UpdateEntity(GongShiXingZhiBusEntity obj)
 {
     if (obj == null || obj.IsEmpty)
     {
         return false;
     }
     GongShiXingZhiUpdate exec = new GongShiXingZhiUpdate();
     try
     {
         exec.ReceiveParameter(obj);
         exec.ExecNoQuery();
         return true;
     }
     catch (Exception ex)
     {
         //throw ex;
         return false;
     }
     finally
     {
         obj = null;
     }
 }
 // 修改由实体指定的一条记录 ModifyGongShiXingZhi
 public bool Modify(GongShiXingZhiBusEntity obj)
 {
     return UpdateEntity(obj);
 }
 // 添加由实体指定的一条记录 AddGongShiXingZhi
 public bool Add(GongShiXingZhiBusEntity obj)
 {
     return InsertEntity(obj);
 }