public OrderEFRepository(PizzaAppDbContext pizzaAppDbContext)//DI { _pizzaAppDbContext = pizzaAppDbContext; //var query = _pizzaAppDbContext.Orders // .Include(x => x.PizzaOrders) // .ThenInclude(x => x.Pizza) // .Include(x => x.User); //query.ToList();//db call }
public FeedbackEFRepository(PizzaAppDbContext pizzaAppDbContext) { _pizzaAppDbContext = pizzaAppDbContext; }
public UserEFRepository(PizzaAppDbContext pizzaAppDbContext) { _pizzaAppDbContext = pizzaAppDbContext; }
public SizeRepository(PizzaAppDbContext dbContext) { _dbContext = dbContext; }