public LibraryService(IBookRepository bookRepository, IGenreRepository genreRepository, IGroupeRepository groupeRepository, IStudentRepository studentRepository, IStudentBookRepository studentBookRepository, ISubjectRepository subjectRepository, ITeacherRepository teacherRepository, ITeacherBookRepository teacherBookRepository, IMapper mapper) { this.bookRepository = bookRepository; this.genreRepository = genreRepository; this.groupeRepository = groupeRepository; this.studentRepository = studentRepository; this.studentBookRepository = studentBookRepository; this.subjectRepository = subjectRepository; this.teacherRepository = teacherRepository; this.teacherBookRepository = teacherBookRepository; this.mapper = mapper; }
public ArpagonUow() { // Context CreateDbContext(); // Repos _CategorieRepo = new CategorieBudgetRepository(db); _BudgetRepo = new BudgetRepository(db); _CompteBanqueRepo = new CompteBanqueRepository(db); _BanqueRepo = new EFRepository<Banque>(db); _CompteCaisseRepo = new CompteCaisseRepository(db); _GroupeRepo = new GroupeRepository(db); _ModeleMouvementBudgetRepo = new ModeleMouvementBudgetRepository(db); _ModeleProvisionRepo = new ModeleProvisionRepository(db); _ModeleRepo = new ModeleRepository(db); _MouvementRepo = new MouvementBudgetRepository(db); _MoyenPaiementRepo = new MoyenPaiementRepository(db); _NoteRepo = new EFRepository<Note>(db); _OperationRepo = new OperationRepository(db); _FinancementRepo = new FinancementRepository(db); _FinancementBudgetRepo = new FinancementBudgetRepository(db); _ProvisionRepo = new ProvisionRepository(db); _TypeOperationRepo = new EFRepository<TypeOperation>(db); //_UserRepo = new UserRepository(db); _UtilisateurRepo = new UtilisateurRepository(db); _Chargement = new EFRepository<Chargement>(db); _OperationRawSG = new RawRepository<OperationRawSG>(db); _Contrat = new ContratRepository(db); _EcheanceContrat = new EcheanceContratRepository(db); _RapproEcheance = new RapproEcheanceRepository(db); _RapproRaw = new RapproRawRepository(db); _TraceLog = new TraceLogRepository(db); }