public void Put(int id, [FromBody] E entity)
 {
     try
     {
         _logger.QuickLog(DbOperationType.Update, entity);
         _baseDao.Update(id, entity);
         _logger.LogSuccess(() => _baseDao.GetOneById(id).Equals(entity, excludeId: false));
     }
     catch (Exception ex)
     {
         _logger.LogError(ex);
         //throw;
     }
 }
 public void Update(UserDTO user)
 {
     try
     {
         _dal.BeginTransaction();
         T_User UserEntity = new T_User {
             Birthday = DateTime.Now, UserName = user.UserName, UserID = user.UserID
         };
         _dal.Update <T_User>(UserEntity, false);
         _dal.CommitTransaction();
     }
     catch
     {
         _dal.RollbackTransaction();
     }
 }
Exemplo n.º 3
0
 public bool Update <T>(T t)
 {
     return(baseDao.Update <T>(t));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 修改记录
 /// </summary>
 public int Update(DataTable dt, string where)
 {
     return(baseDao.Update(dt, where));
 }
 public void Delete(int StorageID)
 {
     _dal.Update <T_Storage>(new T_Storage {
         Enabled = false
     }, true);
 }
Exemplo n.º 6
0
 public void Delete(int FruitID)
 {
     _dal.Update <T_Fruits>(new T_Fruits {
         Enabled = false
     }, true);
 }
Exemplo n.º 7
0
 public void Update(T obj)
 {
     ThreadExecuter.Execute(
         () => BaseRepo.Update(obj)
         );
 }
Exemplo n.º 8
0
 public void Renew(FruitPicDTO fruitpic)
 {
     _dal.Update <T_FruitPic>(Mapper.Map <T_FruitPic>(fruitpic), true);
 }
Exemplo n.º 9
0
 /// <summary>
 /// 更新Entity
 /// </summary>
 public bool Update(T t)
 {
     return(dao.Update(t));
 }
Exemplo n.º 10
0
 public void Delete(int PostAddressID)
 {
     _dal.Update <T_PostAddress>(new T_PostAddress {
         Enabled = false
     }, true);
 }
Exemplo n.º 11
0
 public void Delete(int SupplierID)
 {
     _dal.Update <T_Supplier>(new T_Supplier {
         Enabled = false
     }, true);
 }
Exemplo n.º 12
0
 public void Delete(int PlaceID)
 {
     _dal.Update <T_Place>(new T_Place {
         Enabled = false
     }, true);
 }
Exemplo n.º 13
0
 public void Renew(StockinDTO stockin)
 {
     _dal.Update <T_Stockin>(Mapper.Map <T_Stockin>(stockin), true);
 }
Exemplo n.º 14
0
 public void Delete(int UserOrdersID)
 {
     _dal.Update <T_UserOrders>(new T_UserOrders {
         Enabled = false
     }, true);
 }
 public void Renew(ProductPicDTO productpic)
 {
     _dal.Update <T_ProductPic>(Mapper.Map <T_ProductPic>(productpic), true);
 }
Exemplo n.º 16
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public bool Update(TEntity entity)
 {
     return(_dao.Update(entity));
 }
Exemplo n.º 17
0
 public void Renew(InventoryDTO inventory)
 {
     _dal.Update <T_Inventory>(Mapper.Map <T_Inventory>(inventory), true);
 }
 public void Renew(ProductFruitsDTO productfruits)
 {
     _dal.Update <C_ProductFruits>(Mapper.Map <C_ProductFruits>(productfruits), true);
 }
Exemplo n.º 19
0
 public void Delete(int ProductsID)
 {
     _dal.Update <T_Products>(new T_Products {
         Enabled = false
     }, true);
 }
Exemplo n.º 20
0
 public bool Update(T model)
 {
     return(Instance.Update(model));
 }
Exemplo n.º 21
0
 public void Update(TEntity entity)
 {
     _baseDao.Update(entity);
 }
Exemplo n.º 22
0
 public void Renew(ProductOrdersDTO productorders)
 {
     _dal.Update <T_ProductOrders>(Mapper.Map <T_ProductOrders>(productorders), true);
 }