Exemplo n.º 1
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 /// <param name="model"></param>
 public int UpdateHandleReportById(ServHandleReportModel model)
 {
     try
     {
         int result = mapContext.Update("UpdateHandleReport", model);
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
        public ServHandleReportModel GetEntity(int id)
        {
            ServHandleReportModel model = new ServHandleReportModel();

            try
            {
                model = mapContext.QueryForList <ServHandleReportModel>("GetHandleReportById", id).FirstOrDefault();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(model);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        /// <param name="entity"></param>
        public int AddEntity(ServHandleReportModel entity)
        {
            int id = (int)mapContext.Insert("InsertHandleReport", entity);

            return(id);
        }
Exemplo n.º 4
0
 public bool UpdateEntity(int id, ServHandleReportModel newentity)
 {
     throw new NotImplementedException();
 }