static void Main(string[] args) { var optionsBuilder = new DbContextOptionsBuilder <>(); optionsBuilder.UseSqlServer(SecretConfiguration.ConnectionString); var options = optionsBuilder.Options; var dbContext = new PizzaDB2Context(options); IOrderedPizzasRepository OrderedPizzasRepository = new OrderedPizzasRepository(dbContext);
public PizzasController(PizzaDB2Context context) { _context = context; }
public OrdersController(PizzaDB2Context context) { _context = context; }
public StoreIngredientsController(PizzaDB2Context context) { _context = context; }
public UserAddressesController(PizzaDB2Context context) { _context = context; }
public StoresController(PizzaDB2Context context) { _context = context; }
public UserTblsController(PizzaDB2Context context) { _context = context; }