本文整理汇总了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;
}
示例2: ReportService
public ReportService(ICompanyRepository CompanyRepository,IEmployeeRepository employeeRespository, IExperienceRepository experienceRepository,ITerminateRepository terminateRepository)
{
this.companyRepository = CompanyRepository;
this.employeeRespository = employeeRespository;
this.experienceRepository = experienceRepository;
this.terminateRepository = terminateRepository;
}
示例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");
}
示例4: EmployeeService
static EmployeeService()
{
EmployeeService.unitOfWork = new UnitOfWork();
EmployeeService.repository
= RepositoryFactory.GetRepository<IEmployeeRepository,
Employee>(EmployeeService.unitOfWork);
}
示例5: ProfileController
public ProfileController(IRoleRepository roleRepository, IEmployeeRepository employeeRepository, IDepartmentRepository departmentRepository, ISeatingFloorRespository seatingFloorRespository)
{
this.roleRepository = roleRepository;
this.employeeRepository = employeeRepository;
this.departmentRepository = departmentRepository;
this.seatingFloorRespository = seatingFloorRespository;
}
示例6: RiskAssessmentLookupService
public RiskAssessmentLookupService(IRiskAssessmentRepository riskAssessmentRepository, IPeninsulaLog log, IEmployeeRepository employeeRepository, INonEmployeeRepository nonEmployeeRepository)
{
_riskAssessmentRepository = riskAssessmentRepository;
_log = log;
_employeeRepository = employeeRepository;
_nonEmployeeRepository = nonEmployeeRepository;
}
示例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>();
}
示例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;
}
示例9: CreateEmployeeViewModel
public CreateEmployeeViewModel(Employee employee, IEmployeeRepository repository, MainViewModel mainViewModel)
: base(mainViewModel)
{
Employee = employee;
Repository = repository;
Title = "Create Employee";
}
示例10: OrgChartPresenter
public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter)
{
View = view;
EmployeeDetailPresenter = employeeDetailPresenter;
View.Presenter = this;
Repository = repository;
}
示例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>();
}
示例12: SeatingPrioritySetupModel
public SeatingPrioritySetupModel(IAreaRepository areaRepository,
IEmployeeRepository employeeRepository, IEntityFactory entityFactory)
{
_areaRepository = areaRepository;
_entityFactory = entityFactory;
_employeeRepository = employeeRepository;
}
示例13: ReportController
public ReportController(IPunchRepository punchRepository, IEmployeeRepository employeeRepository, ITardyService tardyService, IUnitOfWork<Punch> punchUnitOfWork)
{
_punchRepository = punchRepository;
_employeeRepository = employeeRepository;
_tardyService = tardyService;
_punchUnitOfWork = punchUnitOfWork;
}
示例14: UserRepository
public UserRepository(ICredentialRepository credentialRepository,
IEmployeeRepository employeeRepository,
IPersonRepository personRepository)
{
_credentialRepository = credentialRepository;
_employeeRepository = employeeRepository;
_personRepository = personRepository;
}
示例15: OrgChartPresenter
public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter, ICommand<AddNewEmployeeData> addNewEmployeeCommand)
{
View = view;
EmployeeDetailPresenter = employeeDetailPresenter;
AddNewEmployeeCommand = addNewEmployeeCommand;
View.Presenter = this;
Repository = repository;
}