Пример #1
0
 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
 }
Пример #2
0
 public FeedbackEFRepository(PizzaAppDbContext pizzaAppDbContext)
 {
     _pizzaAppDbContext = pizzaAppDbContext;
 }
Пример #3
0
 public UserEFRepository(PizzaAppDbContext pizzaAppDbContext)
 {
     _pizzaAppDbContext = pizzaAppDbContext;
 }
Пример #4
0
 public SizeRepository(PizzaAppDbContext dbContext)
 {
     _dbContext = dbContext;
 }