예제 #1
0
        public ProjectRepository(ErpDbContext context
                                 , Iproject_partnerRepository <project_partnerModel> repo_project_partner

                                 , IGenericRepository <PartnerModel> repo_partner
                                 , IUnitOfWork unitOfWork)
        {
            _context = context;
            _repo_project_partner = repo_project_partner;

            _repo_partner = repo_partner;
            _unitOfWork   = unitOfWork;
        }
예제 #2
0
        public ProjectController(

            IProjectRepository <ProjectModel> repo_project
            , Iproject_partnerRepository <project_partnerModel> repo_project_partner
            , IGenericRepository <PartnerModel> repo_partner
            , IUnitOfWork unitOfWork
            )
        {
            _repo_project         = repo_project;
            _repo_project_partner = repo_project_partner;
            _repo_partner         = repo_partner;
            _unitOfWork           = unitOfWork;
        }