public Repository() { djelatnikRepository = new DjelatnikRepository(); klijentRepository = new KlijentRepository(); mjestoRepository = new MjestoRepository(); racunRepository = new RacunRepository(); racunStatusRepository = new RacunStatusRepository(); voziloRepository = new VoziloRepository(); voziloKategorijaRepository = new VoziloKategorijaRepository(); voziloStatusRepository = new VoziloStatusRepository(); }
public UnitOfWork(ModelContainer context) { _context = context; Klijenti = new KlijentRepository(context); Gradovi = new GradRepository(context); Filijale = new FilijalaRepository(context); Zaposleni = new ZaposleniRepository(context); Vozila = new VoziloRepository(context); Ocene = new OcenaRepository(context); Rezervacije = new RezervacijaRepository(context); Agenti = new AgentiRepository(context); Serviseri = new ServiseriRepository(context); Servisi = new ServisRepository(context); Osiguranja = new OsiguranjeRepository(context); }