Exemple #1
0
 public UnitOfWork(AppDbContext context)
 {
     _context  = context;
     Alumns    = new AlumnRepository(_context);
     Employees = new EmployeeRepository(_context);
     Events    = new EventRepository(_context);
 }
Exemple #2
0
        public UnitOfWork(AppDbContext context)
        {
            _context = context;

            AnvändareRepository     = new AnvändareRepository(_context);
            AlumnRepository         = new AlumnRepository(_context);
            AktivitetRepository     = new AktivitetRepository(_context);
            PersonalRepository      = new PersonalRepository(_context);
            UtskicksListaRepository = new UtskicksListaRepository(_context);
        }
 public UnitOfWork(DatabaseContext databaseContext)
 {
     _context                      = databaseContext;
     AlumnRepository               = new AlumnRepository(_context);
     PersonalRepository            = new PersonalRepository(_context);
     AktivitetRepository           = new AktivitetRepository(_context);
     KompetensRepository           = new KompetensRepository(_context);
     ProgramRepository             = new ProgramRepository(_context);
     InformationsutskickRepository = new InformationsutskickRepository(_context);
 }
Exemple #4
0
 public UnitOfWork(AlumnProgramContext alumnProgramContext)
 {
     _context                       = alumnProgramContext;
     AlumnRepositorys               = new AlumnRepository(_context);
     AdminRepositorys               = new AdminRepository(_context);
     ActivityRepositorys            = new ActivityRepository(_context);
     FinishedEducationRepositorys   = new FinishedEducationRepository(_context);
     ListExportRepositorys          = new ListExportRepository(_context);
     OtherEducationRepositorys      = new OtherEducationRepository(_context);
     ProgrammingLanguageRepositorys = new ProgrammingLanguageRepository(_context);
 }