Exemple #1
0
        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;
 }
Exemple #3
0
 public SuppliersController(Northwind2Context context)
 {
     _context = context;
 }
 public OrdersController(Northwind2Context context)
 {
     _context = context;
 }
Exemple #5
0
 public EmployeesController(Northwind2Context context)
 {
     _context = context;
 }
Exemple #6
0
 public ProductsController(Northwind2Context context)
 {
     _context = context; // Injection de dépendance (du context)
 }
Exemple #7
0
 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;
 }