public UnitOfWork(ApplicationDbContext context) { _context = context; Ranjivosti = new RanjivostiRepository(_context); Pretnje = new PretnjeRepository(_context); VrstePretnji = new VrstePretnjiRepository(_context); VrsteVrednosti = new VrsteVrednostiRepository(_context); Vrednosti = new VrednostiRepository(_context); OrganizacioneCeline = new OrganizacioneCelineRepository(_context); VlasniciVrednosti = new VlasniciVrednostiRepository(_context); PoslovneVrednosti = new PoslovneVrednostiRepository(_context); Dobavljaci = new DobavljaciRepository(_context); ProcesiServisiBia = new BiaRepository(_context); Zaposleni = new ZaposleniRepository(_context); PretnjeRanjivosti = new PretnjeRanjivostiRepository(_context); ProcenaRizikaVrsteVrednosti = new ProcenaRizikaVrsteVrednostiRepository(_context); VrstaMere = new VrstaMereRepository(_context); Mere = new MereRepository(_context); VrsteVrednosti_PretnjeRanjivosti = new VrsteVrednosti_PretnjeRanjivostiRepository(_context); IntenzitetPretnji = new IntenzitetPretnjiRepository(_context); IntenzitetRanjivosti = new IntenzitetRanjivostiRepository(_context); }
public UnitOfWork(ZaposleniDbContext context) { this.context = context; ZaposleniRepository = new ZaposleniRepository(context); }