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

C# IProjectRepository类代码示例

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

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



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

示例1: ProjectBaseController

 protected ProjectBaseController(ICurtinUserService lookupService, IProjectRepository projectRepository, IFieldOfResearchRepository fieldOfResearchRepository, ISocioEconomicObjectiveRepository socioEconomicObjectiveRepository) 
     : base(lookupService)
 {
     ProjectRepository = projectRepository;
     FieldOfResearchRepository = fieldOfResearchRepository;
     SocioEconomicObjectiveRepository = socioEconomicObjectiveRepository;
 }
开发者ID:SharePointSusan,项目名称:Research-Data-Manager,代码行数:7,代码来源:ProjectBaseController.cs


示例2: ProjectService

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


示例3: ProjectController

 public ProjectController(
     IProjectView projectView, 
     INewProjectView newProjectView, 
     IProjectRepository projectRepository, 
     IDealRepository dealRepository,
     INewProjectSupplyView newProjectSupplyView,
     INewProjectHardwareView newProjectHardwareView,
     IEditProjectSupplyView editProjectSupplyView,
     IEditProjectHardwareView editProjectHardwareView,
     INewProjectFrameView newProjectFrameView,
     IEditProjectHardwareSupplyView editProjectHardwareSupplyView,
     ILoadingView loadingView,
     ICatalogRepository catalogRepository,
     ITaskRepository taskRepository)
 {
     this.projectView = projectView;
     this.newProjectView = newProjectView;
     this.projectRepository = projectRepository;
     this.dealRepository = dealRepository;
     this.newProjectSupplyView = newProjectSupplyView;
     this.newProjectHardwareView = newProjectHardwareView;
     this.editProjectHardwareView = editProjectHardwareView;
     this.editProjectSupplyView = editProjectSupplyView;
     this.newProjectFrameView = newProjectFrameView;
     this.editProjectHardwareSupplyView = editProjectHardwareSupplyView;
     this.loadingView = loadingView;
     this.catalogRepository = catalogRepository;
     this.taskRepository = taskRepository;
 }
开发者ID:grozeille,项目名称:chiffrage,代码行数:29,代码来源:ProjectController.cs


示例4: ConfirmController

 /// <summary>
 /// Initializes a new instance of the ConfirmController class.
 /// </summary>
 public ConfirmController(IProjectRepository projectRepository, IDataCollectionRepository dataCollectionRepository, ICurtinUserService lookupService, IBus bus)
     : base(lookupService)
 {
     _projectRepository = projectRepository;
     _dataCollectionRepository = dataCollectionRepository;
     _bus = bus;
 }
开发者ID:SharePointSusan,项目名称:Research-Data-Manager,代码行数:10,代码来源:ConfirmController.cs


示例5: BuildPurgeRuleManager

 public BuildPurgeRuleManager(IBuildPurgeRuleRepository buildPurgeRuleRepository, IProjectRepository projectRepository, ISystemSettings systemSettings, IDIFactory diFactory)
 {
     _buildPurgeRuleRepository = DIHelper.VerifyParameter(buildPurgeRuleRepository);
     _projectRepository = DIHelper.VerifyParameter(projectRepository);
     _systemSettings = DIHelper.VerifyParameter(systemSettings);
     _diFactory = DIHelper.VerifyParameter(diFactory);
 }
开发者ID:gsbastian,项目名称:Sriracha.Deploy,代码行数:7,代码来源:BuildPurgeRuleManager.cs


示例6: ProjectLogic

 public ProjectLogic(IProjectRepository projectRepository, IUserProjectAssignmentRepository userProjectAssignmentRepository,
     IProjectSerialize serializer)
 {
     ProjectRepository = projectRepository;
     UserProjectAssignmentRepository = userProjectAssignmentRepository;
     Serializer = serializer;
 }
开发者ID:bojakowsky,项目名称:TaskVlopper,代码行数:7,代码来源:ProjectLogic.cs


示例7: MasterController

 public MasterController(ITicketService ticketService, IUserRepository userRepo, IProjectRepository projectRepo, ITicketRepository ticketRepo)
 {
     _ticketService = ticketService;
     _userRepo = userRepo;
     _projectRepo = projectRepo;
     _ticketRepo = ticketRepo;
 }
开发者ID:justin-arvay,项目名称:Trakker,代码行数:7,代码来源:MasterController.cs


示例8: ConnectionController

 public ConnectionController(IConnectionRepository dbConnectionRepository, IProjectRepository dbProjectRepository,
     IConnectionProviderRepository dbConnectionProviderRepository)
 {
     _dbConnectionRepository = dbConnectionRepository;
     _dbProjectRepository = dbProjectRepository;
     _dbConnectionProviderRepository = dbConnectionProviderRepository;
 }
开发者ID:leloulight,项目名称:LucentDb,代码行数:7,代码来源:ConnectionController.cs


示例9: GenerateDemoData

    public static void GenerateDemoData(
      IIssueRepository issueRepository, 
      IProjectRepository projectRepository, 
      IAttachmentRepository attachmentRepository)
    {
      Project p = new Project("SHOP", "Webshop", "All issues related to the webshop.");
      projectRepository.Add(p);

      Issue i = new Issue(p, "Crash after payment", @"I have justed paid for two pairs of shoes - or rather I tried to. When I clicked 'Pay' all I got was a yellow error screen.", 3);

      issueRepository.Add(i);

      string errorReport = "This is an error report ...";
      Attachment att = new Attachment(i, "Error report", "Error report from end user", Encoding.UTF8.GetBytes(errorReport), "text/plain");
      attachmentRepository.Add(att);

      string logFile = "DEBUG 2014-01-22 15:45:07,610 166033ms  [9] Log4NetTraceListener   WriteLine          - Executing OperationResult OperationResult: type=OK, statusCode=200.";
      att = new Attachment(i, "Logfile", "Logfile with server stack trace", Encoding.UTF8.GetBytes(logFile), "text/plain");
      attachmentRepository.Add(att);

      i = new Issue(p, "Not calculating VAT correctly", @"When I add both shoes and socks it fails to calculate the VAT correctly.", 3);

      issueRepository.Add(i);

      i = new Issue(p, "General Failure?", @"When I press ctrl-P it says 'General failure reading harddisk'! Who is that General and why is he reading my hard disk?", 5);

      issueRepository.Add(i);
    }
开发者ID:paulswartz,项目名称:Mason,代码行数:28,代码来源:DemoDataGenerator.cs


示例10: AssertCreatedEnvironment

        private void AssertCreatedEnvironment(DeployEnvironment result, DeployProject project, string environmentName, List<DeployEnvironmentConfiguration> environmentComponentList, List<DeployEnvironmentConfiguration> environmentConfigurationList, IProjectRepository sut)
        {
            Assert.IsNotNull(result);
            Assert.IsNotNullOrEmpty(result.Id);
            Assert.AreEqual(project.Id, result.ProjectId);
            Assert.AreEqual(environmentName, result.EnvironmentName);
            AssertHelpers.AssertCreatedBaseDto(result, this.UserName);
            
            environmentComponentList = environmentComponentList ?? new List<DeployEnvironmentConfiguration>();
            Assert.AreEqual(environmentComponentList.Count(), result.ComponentList.Count);
            foreach(var item in environmentComponentList)
            {
                var createdItem = result.ComponentList.SingleOrDefault(i=>i.ParentId == item.ParentId);
                AssertCreatedEnvironmentConfiguration(item, createdItem, project, result, EnumDeployStepParentType.Component);
            }
            environmentConfigurationList = environmentConfigurationList ?? new List<DeployEnvironmentConfiguration>();
            Assert.AreEqual(environmentConfigurationList.Count(), result.ConfigurationList.Count);
            foreach (var item in environmentConfigurationList)
            {
                var createdItem = result.ConfigurationList.SingleOrDefault(i => i.ParentId == item.ParentId);
                AssertCreatedEnvironmentConfiguration(item, createdItem, project, result, EnumDeployStepParentType.Configuration);
            }

            var dbItem = sut.GetEnvironment(result.Id, result.ProjectId);
            AssertEnvironment(result, dbItem);

            var dbProject = sut.GetProject(project.Id);
            var dbProjectEnvironment = dbProject.EnvironmentList.SingleOrDefault(i => i.Id == result.Id);
            Assert.IsNotNull(dbProjectEnvironment);
            AssertEnvironment(result, dbProjectEnvironment);
        }
开发者ID:gsbastian,项目名称:Sriracha.Deploy,代码行数:31,代码来源:ProjectRepositoryEnvironmentTests.cs


示例11: ToProjectLocalTime

        public static Stack ToProjectLocalTime(this Stack stack, IProjectRepository repository)
        {
            if (stack == null)
                return null;

            return stack.ToProjectLocalTime(repository.GetById(stack.ProjectId, true));
        }
开发者ID:BookSwapSteve,项目名称:Exceptionless,代码行数:7,代码来源:StackExtensions.cs


示例12: TaskController

		public TaskController(IUnitOfWork unitOfWork, ITaskRepository taskRepository, IProjectRepository projectRepository, IDisposableCollection disposables)
			: base(disposables)
		{
			_taskRepository = taskRepository;
			_projectRepository = projectRepository;
			_unitOfWork = unitOfWork;
		}
开发者ID:nikaburu,项目名称:company-example,代码行数:7,代码来源:TaskController.cs


示例13: Init

 public void Init()
 {
     _taskRepository = Substitute.For<TaskRepository>();
     _projectRepository = Substitute.For<IProjectRepository>();
     _console = Substitute.For<IConsole>();
     _addTaskCommand = new AddTaskCommand(_console, _taskRepository, _projectRepository, "secrets Eat more donuts.");
 }
开发者ID:tekavec,项目名称:TaskListKata,代码行数:7,代码来源:AddTaskCommandShould.cs


示例14: RemoveProjectWorkItemHandler

 public RemoveProjectWorkItemHandler(IProjectRepository projectRepository, IEventRepository eventRepository, IStackRepository stackRepository, ITokenRepository tokenRepository, IWebHookRepository webHookRepository) {
     _projectRepository = projectRepository;
     _eventRepository = eventRepository;
     _stackRepository = stackRepository;
     _tokenRepository = tokenRepository;
     _webHookRepository = webHookRepository;
 }
开发者ID:Nangal,项目名称:Exceptionless,代码行数:7,代码来源:RemoveProjectWorkItemHandler.cs


示例15: StatusReportController

        public StatusReportController(IStatusReportRepository repository, ITopicRepository topicRepository, IProjectRepository projectRepository, IResourceRepository resourceRepository, IStatusReportManager statusReportManager, ITagRepository tagRepository)
        {
            _repository = repository;
            _topicRepository = topicRepository;
            _projectRepository = projectRepository;
            _resourceRepository = resourceRepository;
            _tagRepository = tagRepository;
            _statusReportManager = statusReportManager;
            Mapper.CreateMap<StatusReport, StatusReportViewModel>()
                .ForMember(m => m.NumberOfStatusItems, opt => opt.ResolveUsing<NumberOfStatusItemsFormatter>());
            Mapper.CreateMap<StatusItem, StatusReportItemViewModel>()
                .ForMember(m => m.TagsString, opt =>
                {
                    opt.MapFrom(src =>
                        String.Join(",", (from tag in src.Tags
                                          select tag.Name)));
                    opt.NullSubstitute(String.Empty);
                }
                                      );

            Mapper.CreateMap<StatusReportItemViewModel, StatusItem>();

            Mapper.CreateMap<Project, ProjectViewModel>();

            Mapper.CreateMap<Tag, TagViewModel>();
            //.ForMember(m => m.StatusReportId, opt => opt.M);
            //.ForMember(dest => dest.ProjectLeadFullName, opt => opt.MapFrom(src => src.Project.Lead.FullName))
            //.ForMember(dest => dest.ProjectTeamLeadFullName, opt => opt.MapFrom(src => src.Project.Team.Lead.FullName));
        }
开发者ID:dneigler,项目名称:Status-Again,代码行数:29,代码来源:StatusReportController.cs


示例16: UserProjectRoleRelationLogic

 public UserProjectRoleRelationLogic(IUserRepository userRepository,  IUserProjectRoleRelationRepository userProjectRoleRelationRepository, IRoleRepository roleRepository, IProjectRepository projectRepository)
 {
     _userRepository = userRepository;
     _userProjectRoleRelationRepository = userProjectRoleRelationRepository;
     _roleRepository = roleRepository;
     _projectRepository = projectRepository;
 }
开发者ID:pear171902790,项目名称:Bug,代码行数:7,代码来源:UserProjectRoleRelationLogic.cs


示例17: ProjectScreenshotService

 public ProjectScreenshotService(IProjectRepository projectRepository, IMapper mapper, IFileUriProvider uriProvider, IFileSystem fileSystem)
 {
     _projectRepository = projectRepository;
     _uriProvider = uriProvider;
     _fileSystem = fileSystem;
     _mapper = mapper;
 }
开发者ID:GusLab,项目名称:video-portal,代码行数:7,代码来源:ProjectScreenshotService.cs


示例18: ProjectServices

 public ProjectServices(IDbContextScopeFactory dbContextScopeFactory, IProjectRepository projectRepository)
 {
     if (dbContextScopeFactory == null) throw new ArgumentNullException("dbContextScopeFactory");
     if (projectRepository == null) throw new ArgumentNullException("projectRepository");
     _dbContextScopeFactory = dbContextScopeFactory;
     _projectRepository = projectRepository;
 }
开发者ID:chai,项目名称:hakanai,代码行数:7,代码来源:ProjectServices.cs


示例19: ProjectListViewModel

		public ProjectListViewModel( IViewServiceRepository viewServices = null, ISettingsRepository settingsRepo = null, IProjectRepository projectRepo = null, IMessenger messenger = null )
			: base( viewServices, settingsRepo, messenger )
		{
			ProjectRepo = projectRepo ?? new ProjectRepository( Session );

			Projects = new ObservableCollection<ProjectViewModel>( ProjectRepo.GetAll().OrderBy( p => p.Name ).Select( p => new ProjectViewModel( p ) ) );

			var last = Settings.GetById( SettingKeys.LastProject );
			CurrentProject = Projects.FirstOrDefault( p => p.Model.Id == last.Get<int>() ) ?? Projects.FirstOrDefault();

			foreach( var proj in Projects )
			{
				proj.CurrentChanged += Proj_CurrentChanged;
			}

			if( CurrentProject != null )
			{
				CurrentProject.IsCurrent = true;
			}

			ProjectNames = new List<string>();

			Validate( nameof( NewProjectName ) ).Check( () => !string.IsNullOrWhiteSpace( NewProjectName ) ).Message( Strings.ProjectMustHaveName );
			Validate( nameof( NewProjectName ) ).Check( () => !ProjectNames.Contains( NewProjectName ) ).Message( Strings.ThisNameIsAlreadyUsed );
			Reset();
		}
开发者ID:TheSylence,项目名称:GSD,代码行数:26,代码来源:ProjectListViewModel.cs


示例20: 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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IProjectService类代码示例发布时间:2022-05-24
下一篇:
C# IProjectManager类代码示例发布时间: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