public UnitOfWork(UdemyAngularDbContext db)
 {
     _db       = db;
     items     = new ItemRepository(_db);
     customer  = new CustomerRepository(_db);
     order     = new OrderRepository(_db);
     orderItem = new OrderItemRepository(_db);
 }
 public OrderItemRepository(UdemyAngularDbContext db) : base(db)
 {
     _db = db;
 }
 public CustomerRepository(UdemyAngularDbContext db)
     : base(db)
 {
     _db = db;
 }
 public Repository(UdemyAngularDbContext db)
 {
     _db        = db;
     this.dbSet = _db.Set <T>();
 }