Пример #1
0
 public SystemUpsertService(TDbContext database, ILogger <UpsertService <TDbContext, System> > logger, ICacheService <System> cache, IUpsertListService <TDbContext, Domain> domains, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.Systems)
 {
     CacheKey = record => $"{nameof(BusinessObjects)}.{nameof(System)}={record.NameId}";
     _domains = domains ?? throw new ArgumentNullException(nameof(domains));
     _strings = strings ?? throw new ArgumentNullException(nameof(strings));
 }
 public SchemaUpsertService(ICacheService <Schema> cache, TDbContext database, ILogger <UpsertService <TDbContext, Schema> > logger, IUpsertListService <TDbContext, Concept> concepts, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.Schemas)
 {
     CacheKey  = record => $"{nameof(BusinessObjects)}.{nameof(Schema)}={record.NameId}:{record.DomainId}";
     _concepts = concepts ?? throw new ArgumentNullException(nameof(concepts));
     _strings  = strings ?? throw new ArgumentNullException(nameof(strings));
 }
 public SolutionFolderUpsertService(ICacheService <SolutionFolder> cache, TDbContext database, ILogger <UpsertService <TDbContext, SolutionFolder> > logger, IUpsertListService <TDbContext, Project> projects, IUpsertListService <TDbContext, SolutionFile> solutionFiles, IUpsertService <TDbContext, AsciiStringReference> strings) : base(cache, database, logger, database.SolutionFolders)
 {
     CacheKey       = record => $"{nameof(SourceCode)}.{nameof(SolutionFolder)}={record.NameId}";
     _projects      = projects ?? throw new ArgumentNullException(nameof(projects));
     _solutionFiles = solutionFiles ?? throw new ArgumentNullException(nameof(solutionFiles));
     _strings       = strings ?? throw new ArgumentNullException(nameof(strings));
 }
Пример #4
0
 public DomainUpsertService(ICacheService <Domain> cache, TDbContext database, ILogger <UpsertService <TDbContext, Domain> > logger, IUpsertListService <TDbContext, Schema> schemas, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.Domains)
 {
     CacheKey = record => $"{nameof(BusinessObjects)}.{nameof(Domain)}={record.NameId}:{record.SystemId}";
     _schemas = schemas ?? throw new ArgumentNullException(nameof(schemas));
     _strings = strings ?? throw new ArgumentNullException(nameof(strings));
 }
 public SolutionUpsertService(ICacheService <Solution> cache, TDbContext database, ILogger <UpsertService <TDbContext, Solution> > logger, IUpsertListService <TDbContext, NuGetFeed> nuGetFeeds, IUpsertListService <TDbContext, SolutionFolder> solutionFolders, IUpsertService <TDbContext, AsciiStringReference> strings) : base(cache, database, logger, database.Solutions)
 {
     CacheKey         = record => $"{nameof(SourceCode)}.{nameof(Solution)}={record.NameId}";
     _nuGetFeeds      = nuGetFeeds ?? throw new ArgumentNullException(nameof(nuGetFeeds));
     _solutionFolders = solutionFolders ?? throw new ArgumentNullException(nameof(solutionFolders));
     _strings         = strings ?? throw new ArgumentNullException(nameof(strings));
 }
Пример #6
0
 public UpsertUniqueListService(
     ILogger <UpsertUniqueListService <TDbContext, TRecord, TRecordList, TRecordListAssociation> > logger,
     IUpsertListService <TDbContext, TRecord> records,
     IUpsertService <TDbContext, TRecordList> recordList)
 {
     _logger     = logger ?? throw new ArgumentNullException(nameof(logger));
     _records    = records ?? throw new ArgumentNullException(nameof(records));
     _recordList = recordList ?? throw new ArgumentNullException(nameof(recordList));
 }
 public UpsertMappedListService(
     ILogger <UpsertMappedListService <TDbContext, TInput, TOutput> > logger,
     IMappingService <TInput, TOutput> mappingService,
     IUpsertListService <TDbContext, TOutput> upsertListService)
 {
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     _mappingService    = mappingService ?? throw new ArgumentNullException(nameof(mappingService));
     _upsertListService = upsertListService ?? throw new ArgumentNullException(nameof(upsertListService));
 }
 public ConceptUpsertService(ICacheService <Concept> cache, TDbContext database, ILogger <UpsertService <TDbContext, Concept> > logger, IUpsertListService <TDbContext, ConceptManyOptional> manyOptional, IUpsertListService <TDbContext, ConceptManyRequired> manyRequired, IUpsertListService <TDbContext, ConceptOneOptional> oneOptional, IUpsertListService <TDbContext, ConceptOneRequired> oneRequired, IUpsertListService <TDbContext, ConceptProperty> properties, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.Concepts)
 {
     CacheKey      = record => $"{nameof(BusinessObjects)}.{nameof(Concept)}={record.NameId}:{record.SchemaId}";
     _manyOptional = manyOptional ?? throw new ArgumentNullException(nameof(manyOptional));
     _manyRequired = manyRequired ?? throw new ArgumentNullException(nameof(manyRequired));
     _oneOptional  = oneOptional ?? throw new ArgumentNullException(nameof(oneOptional));
     _oneRequired  = oneRequired ?? throw new ArgumentNullException(nameof(oneRequired));
     _properties   = properties ?? throw new ArgumentNullException(nameof(properties));
     _strings      = strings ?? throw new ArgumentNullException(nameof(strings));
 }