コード例 #1
0
        public void Delete(int id)
        {
            _logger.Info("Deleting Product with ID {id}", id);
            Product entity = _dbContext.Product.Find(id);

            _dbContext.Remove(entity);
        }
コード例 #2
0
        public void Delete(int id)
        {
            _logger.Info("Deleting Location with ID {id}", id);
            Location entity = _dbContext.Location.Find(id);

            _dbContext.Remove(entity);
        }
コード例 #3
0
        public void Delete(int customerID)
        {
            _logger.Info("Deleting Customer with ID {customerID}", customerID);
            Customer entity = _dbContext.Customer.Find(customerID);

            _dbContext.Remove(entity);
        }