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(); } }
public bool Update <T>(T t) { return(baseDao.Update <T>(t)); }
/// <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); }
public void Delete(int FruitID) { _dal.Update <T_Fruits>(new T_Fruits { Enabled = false }, true); }
public void Update(T obj) { ThreadExecuter.Execute( () => BaseRepo.Update(obj) ); }
public void Renew(FruitPicDTO fruitpic) { _dal.Update <T_FruitPic>(Mapper.Map <T_FruitPic>(fruitpic), true); }
/// <summary> /// 更新Entity /// </summary> public bool Update(T t) { return(dao.Update(t)); }
public void Delete(int PostAddressID) { _dal.Update <T_PostAddress>(new T_PostAddress { Enabled = false }, true); }
public void Delete(int SupplierID) { _dal.Update <T_Supplier>(new T_Supplier { Enabled = false }, true); }
public void Delete(int PlaceID) { _dal.Update <T_Place>(new T_Place { Enabled = false }, true); }
public void Renew(StockinDTO stockin) { _dal.Update <T_Stockin>(Mapper.Map <T_Stockin>(stockin), true); }
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); }
/// <summary> /// 更新 /// </summary> /// <param name="entity"></param> /// <returns></returns> public bool Update(TEntity entity) { return(_dao.Update(entity)); }
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); }
public void Delete(int ProductsID) { _dal.Update <T_Products>(new T_Products { Enabled = false }, true); }
public bool Update(T model) { return(Instance.Update(model)); }
public void Update(TEntity entity) { _baseDao.Update(entity); }
public void Renew(ProductOrdersDTO productorders) { _dal.Update <T_ProductOrders>(Mapper.Map <T_ProductOrders>(productorders), true); }