public SqlServerFhirDataStore(
            SqlServerDataStoreConfiguration configuration,
            SqlServerFhirModel model,
            SearchParameterToSearchValueTypeMap searchParameterTypeMap,
            VLatest.UpsertResourceTvpGenerator <ResourceMetadata> upsertResourceTvpGeneratorVLatest,
            IOptions <CoreFeatureConfiguration> coreFeatures,
            SqlConnectionWrapperFactory sqlConnectionWrapperFactory,
            ILogger <SqlServerFhirDataStore> logger,
            SchemaInformation schemaInformation)
        {
            EnsureArg.IsNotNull(configuration, nameof(configuration));
            EnsureArg.IsNotNull(model, nameof(model));
            EnsureArg.IsNotNull(searchParameterTypeMap, nameof(searchParameterTypeMap));
            EnsureArg.IsNotNull(upsertResourceTvpGeneratorVLatest, nameof(upsertResourceTvpGeneratorVLatest));
            EnsureArg.IsNotNull(coreFeatures, nameof(coreFeatures));
            EnsureArg.IsNotNull(sqlConnectionWrapperFactory, nameof(sqlConnectionWrapperFactory));
            EnsureArg.IsNotNull(logger, nameof(logger));
            EnsureArg.IsNotNull(schemaInformation, nameof(schemaInformation));

            _configuration                     = configuration;
            _model                             = model;
            _searchParameterTypeMap            = searchParameterTypeMap;
            _upsertResourceTvpGeneratorVLatest = upsertResourceTvpGeneratorVLatest;
            _coreFeatures                      = coreFeatures.Value;
            _sqlConnectionWrapperFactory       = sqlConnectionWrapperFactory;
            _logger                            = logger;
            _schemaInformation                 = schemaInformation;

            _memoryStreamManager = new RecyclableMemoryStreamManager();
        }
예제 #2
0
 public SqlServerFhirDataStore(
     SqlServerDataStoreConfiguration configuration,
     SqlServerFhirModel model,
     SearchParameterToSearchValueTypeMap searchParameterTypeMap,
     V1.UpsertResourceTvpGenerator <ResourceMetadata> upsertResourceTvpGenerator,
     ILogger <SqlServerFhirDataStore> logger)
 {
     EnsureArg.IsNotNull(configuration, nameof(configuration));
     EnsureArg.IsNotNull(model, nameof(model));
     EnsureArg.IsNotNull(searchParameterTypeMap, nameof(searchParameterTypeMap));
     EnsureArg.IsNotNull(upsertResourceTvpGenerator, nameof(upsertResourceTvpGenerator));
     EnsureArg.IsNotNull(logger, nameof(logger));
     _configuration              = configuration;
     _model                      = model;
     _searchParameterTypeMap     = searchParameterTypeMap;
     _upsertResourceTvpGenerator = upsertResourceTvpGenerator;
     _logger                     = logger;
     _memoryStreamManager        = new RecyclableMemoryStreamManager();
 }
예제 #3
0
        public SqlServerFhirDataStore(
            ISqlServerFhirModel model,
            SearchParameterToSearchValueTypeMap searchParameterTypeMap,
            V6.UpsertResourceTvpGenerator <ResourceMetadata> upsertResourceTvpGeneratorV6,
            V7.UpsertResourceTvpGenerator <ResourceMetadata> upsertResourceTvpGeneratorV7,
            V13.UpsertResourceTvpGenerator <IReadOnlyList <ResourceWrapper> > upsertResourceTvpGeneratorV13,
            V17.UpsertResourceTvpGenerator <IReadOnlyList <ResourceWrapper> > upsertResourceTvpGeneratorV17,
            V18.UpsertResourceTvpGenerator <IReadOnlyList <ResourceWrapper> > upsertResourceTvpGeneratorV18,
            VLatest.UpsertResourceTvpGenerator <IReadOnlyList <ResourceWrapper> > upsertResourceTvpGeneratorVLatest,
            V17.ReindexResourceTvpGenerator <IReadOnlyList <ResourceWrapper> > reindexResourceTvpGeneratorV17,
            VLatest.ReindexResourceTvpGenerator <IReadOnlyList <ResourceWrapper> > reindexResourceTvpGeneratorVLatest,
            V17.BulkReindexResourcesTvpGenerator <IReadOnlyList <ResourceWrapper> > bulkReindexResourcesTvpGeneratorV17,
            VLatest.BulkReindexResourcesTvpGenerator <IReadOnlyList <ResourceWrapper> > bulkReindexResourcesTvpGeneratorVLatest,
            IOptions <CoreFeatureConfiguration> coreFeatures,
            SqlConnectionWrapperFactory sqlConnectionWrapperFactory,
            ICompressedRawResourceConverter compressedRawResourceConverter,
            ILogger <SqlServerFhirDataStore> logger,
            SchemaInformation schemaInformation,
            IModelInfoProvider modelInfoProvider)
        {
            _model = EnsureArg.IsNotNull(model, nameof(model));
            _searchParameterTypeMap                  = EnsureArg.IsNotNull(searchParameterTypeMap, nameof(searchParameterTypeMap));
            _upsertResourceTvpGeneratorV6            = EnsureArg.IsNotNull(upsertResourceTvpGeneratorV6, nameof(upsertResourceTvpGeneratorV6));
            _upsertResourceTvpGeneratorV7            = EnsureArg.IsNotNull(upsertResourceTvpGeneratorV7, nameof(upsertResourceTvpGeneratorV7));
            _upsertResourceTvpGeneratorV13           = EnsureArg.IsNotNull(upsertResourceTvpGeneratorV13, nameof(upsertResourceTvpGeneratorV13));
            _upsertResourceTvpGeneratorV17           = EnsureArg.IsNotNull(upsertResourceTvpGeneratorV17, nameof(upsertResourceTvpGeneratorV17));
            _upsertResourceTvpGeneratorV18           = EnsureArg.IsNotNull(upsertResourceTvpGeneratorV18, nameof(upsertResourceTvpGeneratorV18));
            _upsertResourceTvpGeneratorVLatest       = EnsureArg.IsNotNull(upsertResourceTvpGeneratorVLatest, nameof(upsertResourceTvpGeneratorVLatest));
            _reindexResourceTvpGeneratorV17          = EnsureArg.IsNotNull(reindexResourceTvpGeneratorV17, nameof(reindexResourceTvpGeneratorV17));
            _reindexResourceTvpGeneratorVLatest      = EnsureArg.IsNotNull(reindexResourceTvpGeneratorVLatest, nameof(reindexResourceTvpGeneratorVLatest));
            _bulkReindexResourcesTvpGeneratorV17     = EnsureArg.IsNotNull(bulkReindexResourcesTvpGeneratorV17, nameof(bulkReindexResourcesTvpGeneratorV17));
            _bulkReindexResourcesTvpGeneratorVLatest = EnsureArg.IsNotNull(bulkReindexResourcesTvpGeneratorVLatest, nameof(bulkReindexResourcesTvpGeneratorVLatest));
            _coreFeatures = EnsureArg.IsNotNull(coreFeatures?.Value, nameof(coreFeatures));
            _sqlConnectionWrapperFactory    = EnsureArg.IsNotNull(sqlConnectionWrapperFactory, nameof(sqlConnectionWrapperFactory));
            _compressedRawResourceConverter = EnsureArg.IsNotNull(compressedRawResourceConverter, nameof(compressedRawResourceConverter));
            _logger            = EnsureArg.IsNotNull(logger, nameof(logger));
            _schemaInformation = EnsureArg.IsNotNull(schemaInformation, nameof(schemaInformation));
            _modelInfoProvider = EnsureArg.IsNotNull(modelInfoProvider, nameof(modelInfoProvider));

            _memoryStreamManager = new RecyclableMemoryStreamManager();
        }
예제 #4
0
        public SqlServerFhirDataStore(
            ISqlServerFhirModel model,
            SearchParameterToSearchValueTypeMap searchParameterTypeMap,
            V6.UpsertResourceTvpGenerator <ResourceMetadata> upsertResourceTvpGeneratorV6,
            V7.UpsertResourceTvpGenerator <ResourceMetadata> upsertResourceTvpGeneratorV7,
            VLatest.UpsertResourceTvpGenerator <IReadOnlyList <ResourceWrapper> > upsertResourceTvpGeneratorVLatest,
            VLatest.ReindexResourceTvpGenerator <IReadOnlyList <ResourceWrapper> > reindexResourceTvpGeneratorVLatest,
            VLatest.BulkReindexResourcesTvpGenerator <IReadOnlyList <ResourceWrapper> > bulkReindexResourcesTvpGeneratorVLatest,
            IOptions <CoreFeatureConfiguration> coreFeatures,
            SqlConnectionWrapperFactory sqlConnectionWrapperFactory,
            ILogger <SqlServerFhirDataStore> logger,
            SchemaInformation schemaInformation)
        {
            EnsureArg.IsNotNull(model, nameof(model));
            EnsureArg.IsNotNull(searchParameterTypeMap, nameof(searchParameterTypeMap));
            EnsureArg.IsNotNull(upsertResourceTvpGeneratorV6, nameof(upsertResourceTvpGeneratorV6));
            EnsureArg.IsNotNull(upsertResourceTvpGeneratorV7, nameof(upsertResourceTvpGeneratorV7));
            EnsureArg.IsNotNull(upsertResourceTvpGeneratorVLatest, nameof(upsertResourceTvpGeneratorVLatest));
            EnsureArg.IsNotNull(reindexResourceTvpGeneratorVLatest, nameof(reindexResourceTvpGeneratorVLatest));
            EnsureArg.IsNotNull(bulkReindexResourcesTvpGeneratorVLatest, nameof(bulkReindexResourcesTvpGeneratorVLatest));
            EnsureArg.IsNotNull(coreFeatures, nameof(coreFeatures));
            EnsureArg.IsNotNull(sqlConnectionWrapperFactory, nameof(sqlConnectionWrapperFactory));
            EnsureArg.IsNotNull(logger, nameof(logger));
            EnsureArg.IsNotNull(schemaInformation, nameof(schemaInformation));

            _model = model;
            _searchParameterTypeMap                  = searchParameterTypeMap;
            _upsertResourceTvpGeneratorV6            = upsertResourceTvpGeneratorV6;
            _upsertResourceTvpGeneratorV7            = upsertResourceTvpGeneratorV7;
            _upsertResourceTvpGeneratorVLatest       = upsertResourceTvpGeneratorVLatest;
            _reindexResourceTvpGeneratorVLatest      = reindexResourceTvpGeneratorVLatest;
            _bulkReindexResourcesTvpGeneratorVLatest = bulkReindexResourcesTvpGeneratorVLatest;
            _coreFeatures = coreFeatures.Value;
            _sqlConnectionWrapperFactory = sqlConnectionWrapperFactory;
            _logger            = logger;
            _schemaInformation = schemaInformation;

            _memoryStreamManager = new RecyclableMemoryStreamManager();
        }