示例#1
0
        public Repository(IBaseRepository repo)
        {
            _repo = repo;

            DeskRepository     = new DeskRepository(repo);
            CardRepository     = new CardRepository(repo);
            SchoolRepository   = new SchoolRepository(repo);
            CardTypeRepository = new CardTypeRepository(repo);
            SubTypeRepository  = new SubTypeRepository(repo);

            GameRepository = new GameRepository(repo);
            UserRepository = new UserRepository(repo);
            MageRepository = new MageRepository(repo);
        }
        public UnitOfWork(INavyAccountDbContext context)
        {
            this.context = context;
            Users        = new UserRepository(context);

            Menus                  = new MenuRepository(context);
            RoleMenus              = new RoleMenuRepository(context);
            MenuGroups             = new MenuGroupRepository(context);
            UserRoles              = new UserRoleRepository(context);
            FundType               = new FundTypeRepo(context);
            actType                = new AccountTypeRepository(context);
            balSheet               = new BalanceSheetRepository(context);
            mainAccount            = new MainAccountRepository(context);
            accountChart           = new ChartRepository(context);
            subtype                = new SubTypeRepository(context);
            fundTypeCode           = new FundTypeRepository(context);
            loanType               = new LoanTypeRepo(context);
            rank                   = new RankRepo(context);
            person                 = new PersonRepo(context);
            beneficiary            = new BeneficiaryRepo(context);
            bank                   = new BankRepository(context);
            pfundrate              = new PfFundRateRepository(context);
            contribution           = new NPFContributionRepository(context);
            loanRegisterRepository = new LoanRegisterRepository(context);
            register               = new InvestmentRegisterRepository(context);
            loanStatus             = new LoanStatusRepository(context);
            schedule               = new LoanScheduleRepository(context);
            balance                = new TrialBalanceRepository(context);
            accountHistory         = new AccountHistoryRepository(context);
            npf_Ledgers            = new LedgerRepositoy(context);
            report                 = new TrialBalanceReportRepository(context);
            history                = new TrialBalanceHistoryRepository(context);
            pf_loandisc            = new LoandiscRepo(context);
            loanPerRank            = new LoanPerRankRepository(context);
            claimregister          = new ClaimRepository(context);
            npfHistories           = new FinancialDocRepo(context);
            trail                  = new AuditRailRepository(context);
            npf_contrdisc          = new ContrRepo(context);
            surplus                = new SurplusRepository(context);
            cam            = new ClaimTypeRepository(context);
            navip          = new NavipRepository(context);
            loantypereview = new LoanTypeReviewRepo(context);
        }