Esempio n. 1
0
        /// <summary>
        /// 添加信息  2014-11-05 20:23:33 By 唐有炜
        /// </summary>
        /// <param name="TFunOperating">TFunOperating</param>
        /// <returns>添加状态</returns>
        public bool AddFunOperating(TFunOperating FunOperating)
        {
            var status = false;
               try
                {
                     status = TFunOperatingDao.InsertEntity(FunOperating);
                }
                catch (Exception ex)
                {
                    LogHelper.Error("获取FunOperating失败。", ex);
                    status = false;
                }

            return status;
        }
Esempio n. 2
0
 /// <summary>
 /// 修改实体
 /// </summary>
 /// <param name="entity">实体对象</param>
 public bool UpdateEntity(TFunOperating entity)
 {
     using (UCDbContext db=new UCDbContext())
     {
        int rows= db.TFunOperatings.Update(entity);
        if (rows > 0)
         {
             return true;
         }
         else
         {
             return false;
         }
     }
 }