Esempio n. 1
0
 // 根据主键userID返回指定的QiYeXinXi实体
 public static QiYeXinXiBusEntity GetEntity(int userID)
 {
     QiYeXinXiByPK exec = new QiYeXinXiByPK();
     exec.UserID = userID;
     QiYeXinXiBusEntity obj = new QiYeXinXiBusEntity();
     obj.MetaDataTable = exec.ExecDataTable();
     return obj;
 }
Esempio n. 2
0
 // 公用静态方法,插入一条记录 InsertQiYeXinXi
 public static bool InsertEntity(QiYeXinXiBusEntity obj)
 {
     QiYeXinXiInsert exec = new QiYeXinXiInsert();
     try
     {
         exec.ReceiveParameter(obj);
         exec.ExecNoQuery();
         return true;
     }
     catch (Exception ex)
     {
         //throw ex;
         return false;
     }
     finally
     {
         obj = null;
     }
 }
Esempio n. 3
0
 // 公用静态方法,修改一条记录 UpdateQiYeXinXi
 public static bool UpdateEntity(QiYeXinXiBusEntity obj)
 {
     if (obj == null || obj.IsEmpty)
     {
         return false;
     }
     QiYeXinXiUpdate exec = new QiYeXinXiUpdate();
     try
     {
         exec.ReceiveParameter(obj);
         exec.ExecNoQuery();
         return true;
     }
     catch (Exception ex)
     {
         //throw ex;
         return false;
     }
     finally
     {
         obj = null;
     }
 }
Esempio n. 4
0
 // 修改由实体指定的一条记录 ModifyQiYeXinXi
 public bool Modify(QiYeXinXiBusEntity obj)
 {
     return UpdateEntity(obj);
 }
Esempio n. 5
0
 // 添加由实体指定的一条记录 AddQiYeXinXi
 public bool Add(QiYeXinXiBusEntity obj)
 {
     return InsertEntity(obj);
 }