本文整理汇总了C#中IPersonRepository类的典型用法代码示例。如果您正苦于以下问题:C# IPersonRepository类的具体用法?C# IPersonRepository怎么用?C# IPersonRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPersonRepository类属于命名空间,在下文中一共展示了IPersonRepository类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: PersonRepositoryTests
/// <summary>
/// Initializes a new instance of the <see cref="PersonRepositoryTests" /> class.
/// </summary>
public PersonRepositoryTests()
{
this.httpClientHelper = new Mock<IHttpClientHelper>();
DataAccess.Dependencies.Register();
DIContainer.Instance.RegisterInstance<IHttpClientHelper>(this.httpClientHelper.Object);
this.personRepository = DIContainer.Instance.Resolve<IPersonRepository>();
}
开发者ID:JaipurAnkita,项目名称:mastercode,代码行数:10,代码来源:PersonRepositoryTests.cs
示例2: GvaNomController
public GvaNomController(
IUnitOfWork unitOfWork,
ILotRepository lotRepository,
IApplicationRepository applicationRepository,
IPersonRepository personRepository,
IAircraftRepository aircraftRepository,
IAirportRepository airportRepository,
IEquipmentRepository equipmentRepository,
IOrganizationRepository organizationRepository,
ICaseTypeRepository caseTypeRepository,
INomRepository nomRepository,
IStageRepository stageRepository,
IExaminationSystemRepository examinationSystemRepository,
IAircraftRegistrationRepository aircraftRegistrationRepository,
IEnumerable<IDataGenerator> dataGenerators)
{
this.unitOfWork = unitOfWork;
this.lotRepository = lotRepository;
this.applicationRepository = applicationRepository;
this.personRepository = personRepository;
this.aircraftRepository = aircraftRepository;
this.airportRepository = airportRepository;
this.equipmentRepository = equipmentRepository;
this.organizationRepository = organizationRepository;
this.caseTypeRepository = caseTypeRepository;
this.nomRepository = nomRepository;
this.stageRepository = stageRepository;
this.examinationSystemRepository = examinationSystemRepository;
this.aircraftRegistrationRepository = aircraftRegistrationRepository;
this.dataGenerators = dataGenerators;
}
开发者ID:MartinBG,项目名称:Gva,代码行数:31,代码来源:GvaNomController.cs
示例3: PersonsController
public PersonsController(
IUnitOfWork unitOfWork,
ILotRepository lotRepository,
IPersonRepository personRepository,
IApplicationRepository applicationRepository,
IApplicationStageRepository applicationStageRepository,
ICaseTypeRepository caseTypeRepository,
INomRepository nomRepository,
IFileRepository fileRepository,
IPersonDocumentRepository personDocumentRepository,
ILotEventDispatcher lotEventDispatcher,
UserContext userContext)
{
this.unitOfWork = unitOfWork;
this.lotRepository = lotRepository;
this.personRepository = personRepository;
this.applicationRepository = applicationRepository;
this.applicationStageRepository = applicationStageRepository;
this.caseTypeRepository = caseTypeRepository;
this.nomRepository = nomRepository;
this.fileRepository = fileRepository;
this.personDocumentRepository = personDocumentRepository;
this.lotEventDispatcher = lotEventDispatcher;
this.userContext = userContext;
}
开发者ID:MartinBG,项目名称:Gva,代码行数:25,代码来源:PersonsController.cs
示例4: ApplicationsController
public ApplicationsController(
IUnitOfWork unitOfWork,
ILotRepository lotRepository,
IPersonRepository personRepository,
IOrganizationRepository organizationRepository,
IAircraftRepository aircraftRepository,
IAirportRepository airportRepository,
IEquipmentRepository equipmentRepository,
IDocRepository docRepository,
IApplicationRepository applicationRepository,
INomRepository nomRepository,
IFileRepository fileRepository,
IExaminationSystemRepository examinationSystemRepository,
ILotEventDispatcher lotEventDispatcher,
UserContext userContext)
{
this.unitOfWork = unitOfWork;
this.lotRepository = lotRepository;
this.personRepository = personRepository;
this.organizationRepository = organizationRepository;
this.aircraftRepository = aircraftRepository;
this.airportRepository = airportRepository;
this.equipmentRepository = equipmentRepository;
this.docRepository = docRepository;
this.applicationRepository = applicationRepository;
this.nomRepository = nomRepository;
this.examinationSystemRepository = examinationSystemRepository;
this.fileRepository = fileRepository;
this.lotEventDispatcher = lotEventDispatcher;
this.userContext = userContext;
}
开发者ID:MartinBG,项目名称:Gva,代码行数:31,代码来源:ApplicationsController.cs
示例5: SetupPersonModelForTesting
public void SetupPersonModelForTesting()
{
AutomapperConfiguration.Configure();
_personRepository = Mock.Create<IPersonRepository>();
_personModel = new PersonModel(_personRepository);
}
开发者ID:JamesBender,项目名称:WebAPIExample,代码行数:7,代码来源:PersonModelTests.cs
示例6: PersonDetailsViewModel
public PersonDetailsViewModel(
IEventAggregator eventAggregator,
IPersonRepository repository,
IApplicationCommands applicationCommands,
IRegionManager regionManager)
{
this.regionManager = regionManager;
this.eventAggregator = eventAggregator;
this.repository = repository;
this.SaveConfirmation = new InteractionRequest<IConfirmation>();
;
eventAggregator.GetEvent<PersonSelectionEvent>()
.Subscribe(this.OnPersonSelected, ThreadOption.PublisherThread);
this.CreateNewCommand = new DelegateCommand(() => this.SelectedPerson = new Person());
applicationCommands.NewCommand.RegisterCommand(this.CreateNewCommand);
this.SaveCommand = new DelegateCommand(this.Save, this.CanSave);
applicationCommands.SaveCommand.RegisterCommand(this.SaveCommand);
this.GenerateNumbersCommand = new DelegateCommand(this.GenerateNumbers);
this.ShowAnalyzationCommand = new DelegateCommand(this.ShowAnalyzation);
}
开发者ID:HerrLoesch,项目名称:Prism6Examples,代码行数:25,代码来源:PersonDetailsViewModel.cs
示例7: PersonFacade
public PersonFacade(ISessionFactoryHelper sessionFactoryHelper, IPersonRepository personRepository, ICommunicationRepository communicationRepository)
{
_sessionFactoryHelper = sessionFactoryHelper;
_sessionFactory = _sessionFactoryHelper.CreateSessionFactory();
_personRepository = personRepository;
_communicationRepository = communicationRepository;
}
开发者ID:rbakersmith,项目名称:bauerdevsessions,代码行数:7,代码来源:PersonFacade.cs
示例8: PersonListPageViewModel
public PersonListPageViewModel(IPersonRepository personRepository, INavigationService navService, IEventAggregator eventAggregator) {
_personRepository = personRepository;
_navService = navService;
_eventAggregator = eventAggregator;
NavCommand = new DelegateCommand<Person>(OnNavCommand);
PersonDetailNavCommand = new DelegateCommand(() => _navService.Navigate("PersonDetail", 0));
}
开发者ID:ronlemire2,项目名称:PrismRT-CodeGen-v2.1,代码行数:7,代码来源:PersonListPageViewModel.cs
示例9: PersonService
public PersonService(IPersonRepository pr, IPersonFactory pf, IUserRepository ur, IUserFactory uf)
{
this.PersonRepository = pr;
this.PersonFactory = pf;
this.UserRepository = ur;
this.UserFactory = uf;
}
开发者ID:perceptal,项目名称:starter.net,代码行数:7,代码来源:PersonService.cs
示例10: 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
示例11: InjectorIoC
/// <summary>
/// ATR: Constructor sobrecargado, permite parametrizar una instancia
/// inyectada, sin una clase concreta.
/// </summary>
/// <param name="injectedInstance"></param>
public InjectorIoC(IPersonRepository injectedInstance)
{
if (!object.ReferenceEquals(injectedInstance, default(object)))
{
this.injectedInstance = injectedInstance;
}
}
开发者ID:Excoriate,项目名称:ActionSystem,代码行数:12,代码来源:InjectorIoC.cs
示例12: UserService
public UserService(IUserRepository userRepository, IPersonRepository personRepository, IPersonDetailMapper personDetailMapper, IManageUserMapper manageUserMapper)
{
_userRepository = userRepository;
_personRepository = personRepository;
_personDetailMapper = personDetailMapper;
_manageUserMapper = manageUserMapper;
}
开发者ID:uvarajthulasiram,项目名称:TrustMoi,代码行数:7,代码来源:UserService.cs
示例13: PersonController
public PersonController(IPersonRepository personRepository, IMapper mapper)
{
if (personRepository == null) throw new ArgumentNullException(nameof(personRepository));
if (mapper == null) throw new ArgumentNullException(nameof(mapper));
_personRepository = personRepository;
_mapper = mapper;
}
开发者ID:Marsh87,项目名称:LendingLibrary,代码行数:7,代码来源:PersonController.cs
示例14: PersonListViewModel
public PersonListViewModel(IScreen hostScreen, IPersonRepository personRepository = null)
{
HostScreen = hostScreen;
personRepository = personRepository ?? new PersonRepository();
Persons = new ReactiveList<PersonItemViewModel>();
NewPersonCommand = new ReactiveCommand(null);
NewPersonCommand.RegisterAsyncAction(_ => { }).Subscribe(_ => HostScreen.Router.Navigate.Execute(new PersonAddViewModel(HostScreen)));
RefreshCommand = new ReactiveCommand(null);
var refresh = RefreshCommand.RegisterAsync<List<Person>>(_ => Observable.Start(() => personRepository.RetrievePersonsAsync().
Result));
refresh.Subscribe(list =>
{
using (Persons.SuppressChangeNotifications())
{
Persons.Clear();
Persons.AddRange(personRepository.RetrievePersonsAsync().
Result.Select(d => new PersonItemViewModel(d.FirstName,
d.LastName,
d.Age)));
}
});
MessageBus.Current.Listen<Person>().
Subscribe(p =>
{
personRepository.AddPerson(p);
RefreshCommand.Execute(null);
});
}
开发者ID:jiravanet,项目名称:Prezentace-ReactiveUI,代码行数:28,代码来源:PersonListViewModel.cs
示例15: PersonController
public PersonController(IPersonRepository personRepository, IMappingEngine mappingEngine)
{
if (personRepository == null) throw new ArgumentNullException(nameof(personRepository));
if (mappingEngine == null) throw new ArgumentNullException(nameof(mappingEngine));
this._personRepository = personRepository;
this._mappingEngine = mappingEngine;
}
开发者ID:musa-zulu,项目名称:LendingLibrary,代码行数:7,代码来源:PersonController.cs
示例16: PersonService
public PersonService(
IPersonRepository personRepository,
IPersonGroupRepository personGroupRepository,
IPermissionRepository permissionRepository,
IPersonRoleRepository personRoleRepository,
IPersonOptionalFieldRepository personOptionalFieldRepository,
IRelationshipRepository relationshipRepository,
IChurchMatcherRepository churchMatcherRepository,
IGroupRepository groupRepository,
IFamilyRepository familyRepository,
IEmailService emailService,
IAddressRepository addressRepository,
IPhotoRepository photoRepository)
{
_personRepository = personRepository;
_personGroupRepository = personGroupRepository;
_permissionRepository = permissionRepository;
_personRoleRepository = personRoleRepository;
_personOptionalFieldRepository = personOptionalFieldRepository;
_relationshipRepository = relationshipRepository;
_churchMatcherRepository = churchMatcherRepository;
_groupRepository = groupRepository;
_familyRepository = familyRepository;
_emailService = emailService;
_addressRepository = addressRepository;
_photoRepository = photoRepository;
}
开发者ID:petermunnings,项目名称:funwithoiky,代码行数:27,代码来源:PersonService.cs
示例17: PeopleController
public PeopleController(IMappingEngine mappingEngine, IPersonRepository personRepository)
{
if (mappingEngine == null) throw new ArgumentNullException("mappingEngine");
if (personRepository == null) throw new ArgumentNullException("personRepository");
_mappingEngine = mappingEngine;
_personRepository = personRepository;
}
开发者ID:jared-benade,项目名称:LendingLibrary,代码行数:7,代码来源:PeopleController.cs
示例18: PasswordService
public PasswordService(IPersonRepository personRepository, IChurchRepository churchRepository, IUsernamePasswordRepository usernamePasswordRepository, IEmailService emailService)
{
_personRepository = personRepository;
_churchRepository = churchRepository;
_usernamePasswordRepository = usernamePasswordRepository;
_emailService = emailService;
}
开发者ID:petermunnings,项目名称:funwithoiky,代码行数:7,代码来源:PasswordService.cs
示例19: AttendanceService
public AttendanceService(IAbsentReasonRepository absentRepository, IAttendanceRepository attendanceRepository,
IPersonRepository personRepository)
{
this.absentRepository = absentRepository;
this.attendanceRepository = attendanceRepository;
this.personRepository = personRepository;
}
开发者ID:danghung1202,项目名称:invergrovechurch,代码行数:7,代码来源:AttendanceService.cs
示例20: PeopleModule
public PeopleModule(IPersonRepository personRepository)
: base("/people")
{
this.personRepository = personRepository;
Get["/"] = _ => AllPeople();
}
开发者ID:CallumVass,项目名称:Nancy,代码行数:7,代码来源:PeopleModule.cs
注:本文中的IPersonRepository类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论