public UnitOfWork(AirportContext context) { _context = context; Airports = new AirportRepository(_context); Cities = new CityRepository(_context); Countries = new CountryRepository(_context); Locations = new LocationRepository(_context); }
public UnitOfWork(SisanjeHrDbContext context) { _context = context; Admins = new AdminRepository(_context); Owners = new OwnerRepository(_context); Subscriptions = new SubscriptionRepository(_context); Countries = new CountryRepository(_context); Cities = new CityRepository(_context); Locations = new LocationRepository(_context); RegisteredUsers = new RegisteredUserRepository(_context); Workers = new WorkerRepository(_context); HairSalons = new HairSalonRepository(_context); HairSalonMethodsOfPayment = new HairSalonMethodsOfPaymentRepository(_context); MethodsOfPayment = new MethodOfPaymentRepository(_context); HairSalonWorkingHours = new HairSalonWorkingHoursRepository(_context); WorkingHours = new WorkingHourRepository(_context); HairSalonServices = new HairSalonServicesRepository(_context); Services = new ServiceRepository(_context); Appointments = new AppointmentRepository(_context); AppointmentServices = new AppointmentServicesRepository(_context); Reviews = new ReviewRepository(_context); FavoriteHairSalons = new FavoriteHairSalonRepository(_context); }