public UnitOfWork(BookingDbContext context) { this.context = context; ProductRepository = new ProductRepository(context); ShopRepository = new ShopRepository(context); ProductInShopRepository = new ProductInShopRepository(context); UserRepository = new UserRepository(context); BookingRepository = new BookingRepository(context); }
public UserRepository(BookingDbContext context) : base(context) { this.context = context; }
public ProductRepository(BookingDbContext context) : base(context) { this.context = context; }
public Repository(BookingDbContext context) { this.context = context; dbSet = context.Set <TEntity>(); }