コード例 #1
0
 public WorkFlowStagesService()
 {
     _dbContext = new epassbook_dbEntities();
     unitOfWork = new UnitOfWork(_dbContext);
     workflowStageRepository = unitOfWork.GenericRepository <WorkflowStage>();
     stageInRoleRepository   = unitOfWork.GenericRepository <StageInRole>();
 }
コード例 #2
0
 public InstallmentRejectionService()
 {
     _dbContext = new epassbook_dbEntities();
     unitOfWork = new UnitOfWork(_dbContext);
     installmentRejectionRepository = unitOfWork.GenericRepository <InstallmentRejection>();
 }
コード例 #3
0
        public UnitOfWork(epassbook_dbEntities context)

        {
            _dbContext = context;
        }
コード例 #4
0
 public BenificiaryService()
 {
     _dbContext = new epassbook_dbEntities();
     unitOfWork = new UnitOfWork(_dbContext);
     benificiaryMasterRepository = unitOfWork.GenericRepository <BenificiaryMaster>();
 }
コード例 #5
0
 public CityMasterService()
 {
     _dbContext           = new epassbook_dbEntities();
     unitOfWork           = new UnitOfWork(_dbContext);
     cityMasterRepository = unitOfWork.GenericRepository <CityMaster>();
 }
コード例 #6
0
 public GenericRepository(epassbook_dbEntities _dbContext)
 {
     dbContext        = _dbContext;
     this.entityTable = dbContext.Set <TEntity>();
 }
コード例 #7
0
 public CommentService()
 {
     _dbContext        = new epassbook_dbEntities();
     unitOfWork        = new UnitOfWork(_dbContext);
     commentRepository = unitOfWork.GenericRepository <Comment>();
 }
コード例 #8
0
 public UserInRoleService()
 {
     _dbContext           = new epassbook_dbEntities();
     unitOfWork           = new UnitOfWork(_dbContext);
     UserInRoleRepository = unitOfWork.GenericRepository <UserInRole>();
 }