static void Main(string[] args) { _context = new Northwind2Context(); _context.Product.Where(p => p.CategoryId == _idCategorie).Load(); DisplayProductsAndMenu(); Console.ReadKey(); }
public ProductsController(Northwind2Context context) { _context = context; }
public SuppliersController(Northwind2Context context) { _context = context; }
public OrdersController(Northwind2Context context) { _context = context; }
public EmployeesController(Northwind2Context context) { _context = context; }
public ProductsController(Northwind2Context context) { _context = context; // Injection de dépendance (du context) }
public WeatherForecastController(ILogger <WeatherForecastController> logger, Northwind2Context context) { _logger = logger; _context = context; }
public SuppliersController(Northwind2Context context) // Injection de dépendance (du context) { _context = context; }
public CustomersController(Northwind2Context context) { _context = context; }