当前位置: 首页>>代码示例>>C#>>正文


C# IEmployeeRepository类代码示例

本文整理汇总了C#中IEmployeeRepository的典型用法代码示例。如果您正苦于以下问题:C# IEmployeeRepository类的具体用法?C# IEmployeeRepository怎么用?C# IEmployeeRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IEmployeeRepository类属于命名空间,在下文中一共展示了IEmployeeRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CompanyBusinessLogic

 public CompanyBusinessLogic(ICompanyRepository repository, IEmployeeRepository empRepository, IProjectRepository projectRepository, IPersonRepository personRepository)
 {
     _repository = repository;
     _empRepository = empRepository;
     _projectRepository = projectRepository;
     _personRepository = personRepository;
 }
开发者ID:SolutiaCA,项目名称:TrainingProject,代码行数:7,代码来源:CompanyBusinessLogic.cs

示例2: ReportService

 public ReportService(ICompanyRepository CompanyRepository,IEmployeeRepository employeeRespository, IExperienceRepository experienceRepository,ITerminateRepository terminateRepository)
 {
     this.companyRepository = CompanyRepository;
     this.employeeRespository = employeeRespository;
     this.experienceRepository = experienceRepository;
     this.terminateRepository = terminateRepository;
 }
开发者ID:hoangec,项目名称:ECHRMS,代码行数:7,代码来源:ReportService.cs

示例3: EmployeesViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="EmployeesViewModel"/> class.
        /// </summary>
        public EmployeesViewModel(IMessageMediator messageMediator, IUIVisualizerService uiVisualizerService, IEmployeeRepository employeeRepository,
            IMessageService messageService)
            : base(messageMediator)
        {
            Argument.IsNotNull(() => uiVisualizerService);
            Argument.IsNotNull(() => employeeRepository);
            Argument.IsNotNull(() => messageService);

            _uiVisualizerService = uiVisualizerService;
            _employeeRepository = employeeRepository;
            _messageService = messageService;

            AddEmployee = new Command(OnAddEmployeeExecute);
            EditEmployee = new Command(OnEditEmployeeExecute, OnEditEmployeeCanExecute);
            DeleteEmployee = new Command(OnDeleteEmployeeExecute, OnDeleteEmployeeCanExecute);

            Employees = new FastObservableCollection<IEmployee>();
            if (!ObjectHelper.IsNull(SelectedDepartment))
            {
                Employees.AddRange(EmployeeRepository.GetAllEmployees(SelectedDepartment.Name));
            }

            if (Employees.Count > 0)
            {
                SelectedEmployee = Employees[0];
            }

            Mediator.Register<string>(this, OnSelectedDepartmentUpdated, "UpdateEmployees");
        }
开发者ID:ruisebastiao,项目名称:Catel.Examples,代码行数:32,代码来源:EmployeesViewModel.cs

示例4: EmployeeService

 static EmployeeService()
 {
     EmployeeService.unitOfWork = new UnitOfWork();
     EmployeeService.repository 
         = RepositoryFactory.GetRepository<IEmployeeRepository, 
         Employee>(EmployeeService.unitOfWork);
 }
开发者ID:pachinko,项目名称:NDDDCS,代码行数:7,代码来源:EmployeeService.cs

示例5: ProfileController

 public ProfileController(IRoleRepository roleRepository, IEmployeeRepository employeeRepository, IDepartmentRepository departmentRepository, ISeatingFloorRespository seatingFloorRespository)
 {
     this.roleRepository = roleRepository;
     this.employeeRepository = employeeRepository;
     this.departmentRepository = departmentRepository;
     this.seatingFloorRespository = seatingFloorRespository;
 }
开发者ID:reedcouk,项目名称:wiki-toons,代码行数:7,代码来源:ProfileController.cs

示例6: RiskAssessmentLookupService

 public RiskAssessmentLookupService(IRiskAssessmentRepository riskAssessmentRepository, IPeninsulaLog log, IEmployeeRepository employeeRepository, INonEmployeeRepository nonEmployeeRepository)
 {
     _riskAssessmentRepository = riskAssessmentRepository;
     _log = log;
     _employeeRepository = employeeRepository;
     _nonEmployeeRepository = nonEmployeeRepository;
 }
开发者ID:mnasif786,项目名称:Business-Safe,代码行数:7,代码来源:RiskAssessmentLookupService.cs

示例7: ClientController

 public ClientController(IDependencyFactory dependencyFactory)
 {
     _clientDetailsService = dependencyFactory.GetInstance<IClientDetailsService>();
     _employeeRepository = dependencyFactory.GetInstance<IEmployeeRepository>();
     _checklistRepository = dependencyFactory.GetInstance<BusinessSafe.Domain.RepositoryContracts.SafeCheck.ICheckListRepository>();
     //_employeeRepository = ObjectFactory.GetInstance<IEmployeeRepository>();
 }
开发者ID:mnasif786,项目名称:Safe-Check,代码行数:7,代码来源:Client.cs

示例8: AccidentRecordService

 public AccidentRecordService(IAccidentRecordRepository accidentRecordRepository,
                              IAccidentTypeRepository accidentTypeRepository,
                              ICauseOfAccidentRepository causeOfAccidentRepository,
                              IJurisdictionRepository jurisdictionRepository,
                              IUserForAuditingRepository userForAuditingRepository,
                              ICountriesRepository countriesRepository,
                              IEmployeeRepository employeeRepository,
                              ISiteRepository siteRepository,
                              IDocumentTypeRepository documentTypeRepository,
                              IInjuryRepository injuryRepository,
                              IBodyPartRepository bodyPartRepository,
                              IPeninsulaLog log,
                              IBus bus)
 {
     _accidentRecordRepository = accidentRecordRepository;
     _accidentTypeRepository = accidentTypeRepository;
     _causeOfAccidentRepository = causeOfAccidentRepository;
     _jurisdictionRepository = jurisdictionRepository;
     _userForAuditingRepository = userForAuditingRepository;
     _countriesRepository = countriesRepository;
     _employeeRepository = employeeRepository;
     _siteRepository = siteRepository;
     _documentTypeRepository = documentTypeRepository;
     _log = log;
     _injuryRepository = injuryRepository;
     _bodyPartRepository = bodyPartRepository;
     _bus = bus;
 }
开发者ID:mnasif786,项目名称:Business-Safe,代码行数:28,代码来源:AccidentRecordService.cs

示例9: CreateEmployeeViewModel

 public CreateEmployeeViewModel(Employee employee, IEmployeeRepository repository, MainViewModel mainViewModel)
     : base(mainViewModel)
 {
     Employee = employee;
     Repository = repository;
     Title = "Create Employee";
 }
开发者ID:yoger6,项目名称:HolidayCalendar,代码行数:7,代码来源:CreateEmployeeViewModel.cs

示例10: OrgChartPresenter

 public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter)
 {
     View = view;
     EmployeeDetailPresenter = employeeDetailPresenter;
     View.Presenter = this;
     Repository = repository;
 }
开发者ID:jheintz,项目名称:presentations-and-training,代码行数:7,代码来源:OrgChartPresenter.cs

示例11: PayrollManagerTest

        public PayrollManagerTest()
        {
            _now = DateTime.Now;
            _ww = _now.WorkWeek();
            _employees = MockData.Employees;
            _grosses = MockData.Grosses(_ww.Start, _ww.End);

            _emprepos = Substitute.For<IEmployeeRepository>();
            _emprepos.Get().Returns(_employees);

            _dgrepos = Substitute.For<IDailyGrossRepository>();
            _dgrepos.Get(Arg.Any<Employee>(), Arg.Any<DateTime>(), Arg.Any<DateTime>()).ReturnsForAnyArgs(_grosses);
                
            _container = new WindsorContainer();
            _container
                .Register(Component.For<IEmployeeRepository>()
                    .Instance(_emprepos)
                )
                .Register(Component.For<IDailyGrossRepository>()
                    .Instance(_dgrepos)
                )

                .Register(Component.For<IPayrollManager>()
                    .ImplementedBy<PayrollManager>()
                );

            _mgr = _container.Resolve<IPayrollManager>();
        }
开发者ID:jcapuano328,项目名称:aps.mvc,代码行数:28,代码来源:PayrollManagerTest.cs

示例12: SeatingPrioritySetupModel

 public SeatingPrioritySetupModel(IAreaRepository areaRepository,
     IEmployeeRepository employeeRepository, IEntityFactory entityFactory)
 {
     _areaRepository = areaRepository;
     _entityFactory = entityFactory;
     _employeeRepository = employeeRepository;
 }
开发者ID:Mrding,项目名称:Ribbon,代码行数:7,代码来源:SeatingPrioritySetupModel.cs

示例13: ReportController

 public ReportController(IPunchRepository punchRepository, IEmployeeRepository employeeRepository, ITardyService tardyService, IUnitOfWork<Punch> punchUnitOfWork)
 {
     _punchRepository = punchRepository;
     _employeeRepository = employeeRepository;
     _tardyService = tardyService;
     _punchUnitOfWork = punchUnitOfWork;
 }
开发者ID:mweinand,项目名称:Attendance2,代码行数:7,代码来源:ReportController.cs

示例14: UserRepository

 public UserRepository(ICredentialRepository credentialRepository,
                       IEmployeeRepository employeeRepository,
                       IPersonRepository personRepository)
 {
     _credentialRepository = credentialRepository;
     _employeeRepository = employeeRepository;
     _personRepository = personRepository;
 }
开发者ID:qwertylolman,项目名称:Stocktaking,代码行数:8,代码来源:UserRepository.cs

示例15: OrgChartPresenter

 public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter, ICommand<AddNewEmployeeData> addNewEmployeeCommand)
 {
     View = view;
     EmployeeDetailPresenter = employeeDetailPresenter;
     AddNewEmployeeCommand = addNewEmployeeCommand;
     View.Presenter = this;
     Repository = repository;
 }
开发者ID:jheintz,项目名称:presentations-and-training,代码行数:8,代码来源:OrgChartPresenter.cs


注:本文中的IEmployeeRepository类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。