Exemple #1
0
 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);
 }
Exemple #2
0
 public UserRepository(BookingDbContext context) : base(context)
 {
     this.context = context;
 }
Exemple #3
0
 public ProductRepository(BookingDbContext context) : base(context)
 {
     this.context = context;
 }
Exemple #4
0
 public Repository(BookingDbContext context)
 {
     this.context = context;
     dbSet        = context.Set <TEntity>();
 }