• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IEmployeeRepository类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: AttendanceManagerModel

 public AttendanceManagerModel(IEntityFactory entityFactory, IEmployeeRepository employeeRepository, IRepository<Schedule> scheduleRepository, 
     IAttendanceRepository attendanceRepository)
 {
     _entityFactory = entityFactory;
     _employeeRepository = employeeRepository;
     _scheduleRepository = scheduleRepository;
     _attendanceRepository = attendanceRepository;
 }
开发者ID:Mrding,项目名称:Ribbon,代码行数:8,代码来源:AttendanceManagerModel.cs


示例17: EmployeeController

		public EmployeeController(IEmployeeRepository employeeRepository, IDepartmentRepository departmentRepository, IUnitOfWork unitOfWork,
			IDisposableCollection disposables)
			: base(disposables)
		{
			_employeeRepository = employeeRepository;
			_departmentRepository = departmentRepository;
			_unitOfWork = unitOfWork;
		}
开发者ID:nikaburu,项目名称:company-example,代码行数:8,代码来源:EmployeeController.cs


示例18: LoginViewModel

 public LoginViewModel(IDirectoryAuthenticator authenticator, IEmployeeRepository employeeRepository, MainViewModel mainViewModel)
     : base(mainViewModel)
 {
     Title = "Login";
     _directoryAuthenticator = authenticator;
     _employeeRepository = employeeRepository;
     LoadSettings();
 }
开发者ID:yoger6,项目名称:HolidayCalendar,代码行数:8,代码来源:LoginViewModel.cs


示例19: EmployeeService

 public EmployeeService(IEmployeeRepository employeeRepository, IEmploymentTypeRepository employmentTypeRepository, IPositionRepository positionRepository, IProgramRepository programRepository, IRoleRepository roleRepository, IEmployeeProgramRepository employeeProgramRepository)
 {
     this.employeeRepository = employeeRepository;
     this.employmentTypeRepository = employmentTypeRepository;
     this.positionRepository = positionRepository;
     this.roleRepository = roleRepository;
     this.programRepository = programRepository;
     this.employeeProgramRepository = employeeProgramRepository;
 }
开发者ID:bfbalonek,项目名称:SanTanTracking,代码行数:9,代码来源:EmployeeService.cs


示例20: ExperienceService

 public ExperienceService(IInsuranceRepository insuranceRepository, IExperienceRepository experienceRepository, IEmployeeRepository employeeRepository,ICompanyRepository companyRepository,IPositionRepository positionRepository, IUnitOfWork unitOfWork)
 {
     this.experienceRepository = experienceRepository;
     this.employeeRepository = employeeRepository;
     this.companyRepository = companyRepository;
     this.positionRepository = positionRepository;
     this.insuranceRepository = insuranceRepository;
     this.unitOfWork = unitOfWork;
 }
开发者ID:hoangec,项目名称:ECHRMS,代码行数:9,代码来源:ExperienceService.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IEmployeeService类代码示例发布时间:2022-05-24
下一篇:
C# IEmployee类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap