示例#1
0
        public void RemoveAnyFirstProductInUsa()
        {
            var firstProductInUsa = _context
                                    .Products
                                    .FirstOrDefault(p => p.Manufacturer.Country == "USA");

            _context.Remove(firstProductInUsa);
            _context.SaveChanges();
        }