Beispiel #1
0
 public TreeAppService(
     ITreeRepository <TEntity> treeRepository
     )
     : base(treeRepository)
 {
     this.TreeRepository = treeRepository;
 }
Beispiel #2
0
 public MergeTreesCommandHandler(IMergeTreesService mergeTreesService,
                                 IUserProfileRepository userProfileRepository, ITreeRepository treeRepository)
 {
     _mergeTreesService     = mergeTreesService;
     _userProfileRepository = userProfileRepository;
     _treeRepository        = treeRepository;
 }
 /// <summary>
 /// 更新实体以及所有下级节点路径
 /// </summary>
 /// <typeparam name="TEntity">实体类型</typeparam>
 /// <typeparam name="TKey">标识类型</typeparam>
 /// <typeparam name="TParentId">父标识类型</typeparam>
 /// <param name="repository">仓储</param>
 /// <param name="entity">实体</param>
 public static async Task UpdatePathAsync <TEntity, TKey, TParentId>(
     this ITreeRepository <TEntity, TKey, TParentId> repository, TEntity entity)
     where TEntity : class, ITreeEntity <TEntity, TKey, TParentId>
 {
     var manager = new UpdatePathManager <TEntity, TKey, TParentId>(repository);
     await manager.UpdatePathAsync(entity);
 }
Beispiel #4
0
 public TreeAppService(ITreeRepository treeRepository, IArticleRepository articleRepository, IProductRepository productRepository, IPageRepository pageRepository) : base(treeRepository)
 {
     _treeRepository    = treeRepository;
     _articleRepository = articleRepository;
     _productRepository = productRepository;
     _pageRepository    = pageRepository;
 }
 internal RefRepositoryTestMethods(ICommitRepository cmrepo, IStreamedBlobRepository blrepo, ITreeRepository trrepo, ITagRepository tgrepo, IRefRepository rfrepo)
 {
     this.cmrepo = cmrepo;
     this.blrepo = blrepo;
     this.trrepo = trrepo;
     this.tgrepo = tgrepo;
     this.rfrepo = rfrepo;
 }
 internal RefRepositoryTestMethods(ICommitRepository cmrepo, IStreamedBlobRepository blrepo, ITreeRepository trrepo, ITagRepository tgrepo, IRefRepository rfrepo)
 {
     this.cmrepo = cmrepo;
     this.blrepo = blrepo;
     this.trrepo = trrepo;
     this.tgrepo = tgrepo;
     this.rfrepo = rfrepo;
 }
Beispiel #7
0
 public AddTreeOwnerCommandHandler(ITreeRepository treeRepository, IUserProfileRepository userProfileRepository,
                                   IUserAuthIdProvider userAuthIdProvider, IUserAuthIdUniquenessChecker userAuthIdUniquenessChecker)
 {
     _treeRepository              = treeRepository;
     _userProfileRepository       = userProfileRepository;
     _userAuthIdProvider          = userAuthIdProvider;
     _userAuthIdUniquenessChecker = userAuthIdUniquenessChecker;
 }
Beispiel #8
0
 public UserStore(IRepository <User, Guid> userRepository
                  , IRepository <ModuleAuth, Guid> moduleAuthRepository
                  , ITreeRepository <Module, Guid> moduleRepository)
 {
     _userRepository       = userRepository;
     _moduleAuthRepository = moduleAuthRepository;
     _moduleRepository     = moduleRepository;
 }
        public TreeQueryBaseValidator(ITreeRepository treeRepository)
        {
            RuleFor(x => x.TreeId)
            .NotEmpty();

            RuleFor(x => x.RequesterUserAuthId)
            .NotEmpty()
            .MaximumLength(StringLengths.AuthIdLength);
        }
 public CreateTreeFromFileCommandHandler(ITreeRepository treeRepository,
                                         IXmlStreamToGedcomXParser xmlStreamToGedcomXParser,
                                         IGedcomXToDomainTreeConverter gedcomXToDomainTreeConverter, IUserProfileRepository userProfileRepository,
                                         IUserAuthIdUniquenessChecker userAuthIdUniquenessChecker)
 {
     _treeRepository               = treeRepository;
     _xmlStreamToGedcomXParser     = xmlStreamToGedcomXParser;
     _gedcomXToDomainTreeConverter = gedcomXToDomainTreeConverter;
     _userProfileRepository        = userProfileRepository;
     _userAuthIdUniquenessChecker  = userAuthIdUniquenessChecker;
 }
 public CreateTreeCommandHandler(
     IUserProfileRepository userProfileRepository,
     IUserAuthIdUniquenessChecker userAuthIdUniquenessChecker,
     IUnitOfWork unitOfWork,
     ITreeRepository treeRepository)
 {
     _userProfileRepository       = userProfileRepository;
     _userAuthIdUniquenessChecker = userAuthIdUniquenessChecker;
     _unitOfWork     = unitOfWork;
     _treeRepository = treeRepository;
 }
        public UserAppService(ITreeRepository <Department, Guid> departmentRepository
                              , ITreeRepository <Organize, Guid> organizeRepository
                              , IRepository <User, Guid> userRepository
                              , IUserStore userStore)
        {
            _departmentRepository = departmentRepository;
            _organizeRepository   = organizeRepository;
            _userRepository       = userRepository;
            _userStore            = userStore;

            SessionManager = NullSessionManager.Instance;
        }
 public MemberRegistryRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep)
     : base(context, permissionTreeRep)
 {
 }
 public MediaShareRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep)
     : base(context, permissionTreeRep)
 {
 }
Beispiel #15
0
 public ProductReplaceGroupRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep)
     : base(context, permissionTreeRep)
 {
 }
 public TreesController(PatientHandlingContext context, ITreeRepository dataService)
 {
     db = context;
     this.treeRepository = dataService;
 }
Beispiel #17
0
 public TreeService(ITreeRepository treeRepository, string table)
 {
     this.TreeRepository       = treeRepository;
     this.TreeRepository.Table = table;
 }
 public WorkFlowRuleRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep)
     : base(context, permissionTreeRep)
 {
 }
 public TreesController()
 {
     db = new PatientHandlingContext();
     treeRepository = new TreeRepository(db);
 }
 public OrderRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep, IOptions <AppConfig> settingsOptions)
     : base(context, permissionTreeRep)
 {
     appConfig = settingsOptions.Value;
 }
Beispiel #21
0
 public RemoveTreeOwnerCommandHandler(ITreeRepository treeRepository)
 {
     _treeRepository = treeRepository;
 }
Beispiel #22
0
 public RepositoryBase(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep)
 {
     _DbContext = context;
     _PermissionTreeRepository = permissionTreeRep;
 }
 public TreeService(ITreeRepository repository) : base(repository)
 {
     _repository = repository;
 }
Beispiel #24
0
 public UserRoleRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep)
     : base(context, permissionTreeRep)
 {
 }
Beispiel #25
0
 public RemovePersonsFileCommandHandler(ITreeRepository treeRepository)
 {
     _treeRepository = treeRepository;
 }
 public StaticMeshRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep)
     : base(context, permissionTreeRep)
 {
 }
 public AddRelationCommandHandler(ITreeRepository treeRepository)
 {
     _treeRepository = treeRepository;
 }
Beispiel #28
0
 public PageAppService(IPageRepository pageReposotory, ITreeRepository treeRepository) : base(pageReposotory)
 {
     _pageRepository = pageReposotory;
     _treeRepository = treeRepository;
 }
 public GetTreeStatisticsQueryHandler(ITreeRepository treeRepository)
 {
     _treeRepository = treeRepository;
 }
 public LayoutRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep)
     : base(context, permissionTreeRep)
 {
 }
Beispiel #31
0
 public AssetCategoryRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep, ITreeRepository <AssetCategoryTree> assetCategoryTreeRep)
     : base(context, permissionTreeRep)
 {
     _AssetCategoryTreeRepository = assetCategoryTreeRep;
 }
Beispiel #32
0
 public NavigationRepository(ApiDbContext context, ITreeRepository <PermissionTree> permissionTreeRep) : base(context, permissionTreeRep)
 {
 }
Beispiel #33
0
 protected EfCoreTreeRepository_Tests()
 {
     _organizationUnitRepository = GetRequiredService <ITreeRepository <OrganizationUnit> >();
     _resourceRepository         = GetRequiredService <ITreeRepository <Resource> >();
     _guidGenerator = GetRequiredService <IGuidGenerator>();
 }
Beispiel #34
0
 public TestContext(ContentEngine ce, ITreeRepository trrepo, IStreamedBlobRepository blrepo, ITreePathStreamedBlobRepository tpsbrepo)
 {
     this.ce = ce;
     this.trrepo = trrepo;
     this.blrepo = blrepo;
     this.tpsbrepo = tpsbrepo;
 }