/// <summary> /// Method for removing Stck entity from database /// </summary> /// <param name="stock">Stock entity to remove</param> public void Remove(Stock stock) { var watch = Stopwatch.StartNew(); _context.Remove(stock); _context.SaveChanges(); LastOperationTime = (int)watch.ElapsedMilliseconds; }
/// <summary> /// Method for removing SellOffer entity from database /// </summary> /// <param name="sellOffer">SellOffer entity to remove</param> public void Remove(SellOffer sellOffer) { _context.Remove(sellOffer); var watch = Stopwatch.StartNew(); _context.SaveChanges(); LastOperationTime = (int)watch.ElapsedMilliseconds; }
/// <summary> /// Method for removing transaciton entity from database /// </summary> /// <param name="transaction">transaction entity to remove</param> public void Remove(Transaction transaction) { _context.Remove(transaction); var watch = Stopwatch.StartNew(); _context.SaveChanges(); LastOperationTime = (int)watch.ElapsedMilliseconds; }