fhir-server/test/Microsoft.Health.Fhir.Share.../Persistence/SqlServerFhirStorageTestHel...

301 строка
16 KiB
C#
Исходник Обычный вид История

// -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -------------------------------------------------------------------------------------------------
2020-02-10 20:36:48 +03:00
using System;
using System.Text;
2020-02-10 20:36:48 +03:00
using System.Threading;
using System.Threading.Tasks;
using EnsureThat;
using MediatR;
using Microsoft.Data.SqlClient;
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
using Microsoft.Extensions.DependencyInjection;
2020-02-10 20:36:48 +03:00
using Microsoft.Extensions.Logging.Abstractions;
Bump HealthcareSharedPackageVersion from 3.0.5 to 3.0.16 (#2084) * Bump HealthcareSharedPackageVersion from 3.0.5 to 3.0.16 Bumps `HealthcareSharedPackageVersion` from 3.0.5 to 3.0.16. Updates `Microsoft.Health.Abstractions` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Api` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Extensions.DependencyInjection` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Test.Utilities` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Core` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.SqlServer` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.SqlServer.Api` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Client` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * merge with master Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Matantsev <Ivanidze.kirov@gmail.com>
2021-07-15 03:39:01 +03:00
using Microsoft.Extensions.Options;
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
using Microsoft.Health.Extensions.DependencyInjection;
2020-02-10 20:36:48 +03:00
using Microsoft.Health.Fhir.SqlServer.Features.Schema;
using Microsoft.Health.Fhir.SqlServer.Features.Storage;
using Microsoft.Health.Fhir.SqlServer.Features.Watchdogs;
using Microsoft.Health.JobManagement.UnitTests;
using Microsoft.Health.SqlServer;
using Microsoft.Health.SqlServer.Configs;
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
using Microsoft.Health.SqlServer.Features.Client;
using Microsoft.Health.SqlServer.Features.Schema;
using Microsoft.Health.SqlServer.Features.Schema.Manager;
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
using Microsoft.Health.SqlServer.Features.Storage;
using NSubstitute;
2020-02-10 20:36:48 +03:00
using Polly;
using Polly.Retry;
using Xunit;
2020-02-10 20:36:48 +03:00
using Task = System.Threading.Tasks.Task;
namespace Microsoft.Health.Fhir.Tests.Integration.Persistence
{
2020-02-10 20:36:48 +03:00
public class SqlServerFhirStorageTestHelper : IFhirStorageTestHelper, ISqlServerFhirStorageTestHelper
{
private readonly string _masterDatabaseName;
2020-02-10 20:36:48 +03:00
private readonly string _initialConnectionString;
private readonly SqlServerFhirModel _sqlServerFhirModel;
private readonly ISqlConnectionBuilder _sqlConnectionBuilder;
private readonly AsyncRetryPolicy _dbSetupRetryPolicy;
private readonly TestQueueClient _queueClient;
public SqlServerFhirStorageTestHelper(
string initialConnectionString,
string masterDatabaseName,
SqlServerFhirModel sqlServerFhirModel,
ISqlConnectionBuilder sqlConnectionBuilder,
TestQueueClient queueClient)
{
EnsureArg.IsNotNull(sqlServerFhirModel, nameof(sqlServerFhirModel));
EnsureArg.IsNotNull(sqlConnectionBuilder, nameof(sqlConnectionBuilder));
_masterDatabaseName = masterDatabaseName;
2020-02-10 20:36:48 +03:00
_initialConnectionString = initialConnectionString;
_sqlServerFhirModel = sqlServerFhirModel;
_sqlConnectionBuilder = sqlConnectionBuilder;
_queueClient = queueClient;
_dbSetupRetryPolicy = Policy
.Handle<Exception>()
.WaitAndRetryAsync(
retryCount: 7,
sleepDurationProvider: retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)));
2020-02-10 20:36:48 +03:00
}
public async Task CreateAndInitializeDatabase(string databaseName, int maximumSupportedSchemaVersion, bool forceIncrementalSchemaUpgrade, SchemaInitializer schemaInitializer = null, CancellationToken cancellationToken = default)
2020-02-10 20:36:48 +03:00
{
var testConnectionString = new SqlConnectionStringBuilder(_initialConnectionString) { InitialCatalog = databaseName }.ToString();
schemaInitializer ??= CreateSchemaInitializer(testConnectionString, maximumSupportedSchemaVersion);
2020-02-10 20:36:48 +03:00
await _dbSetupRetryPolicy.ExecuteAsync(async () =>
2020-02-10 20:36:48 +03:00
{
// Create the database.
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(_masterDatabaseName, cancellationToken);
2020-02-10 20:36:48 +03:00
await connection.OpenAsync(cancellationToken);
await using SqlCommand command = connection.CreateCommand();
command.CommandTimeout = 600;
command.CommandText = @$"
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = '{databaseName}')
BEGIN
CREATE DATABASE {databaseName};
END";
await command.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
});
2020-02-10 20:36:48 +03:00
// Verify that we can connect to the new database. This sometimes does not work right away with Azure SQL.
await _dbSetupRetryPolicy.ExecuteAsync(async () =>
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(databaseName, cancellationToken);
await connection.OpenAsync(cancellationToken);
await using SqlCommand sqlCommand = connection.CreateCommand();
sqlCommand.CommandText = "SELECT 1";
await sqlCommand.ExecuteScalarAsync(cancellationToken);
await connection.CloseAsync();
});
2020-02-10 20:36:48 +03:00
await _dbSetupRetryPolicy.ExecuteAsync(async () =>
{
await schemaInitializer.InitializeAsync(forceIncrementalSchemaUpgrade, cancellationToken);
});
await InitWatchdogsParameters();
await _sqlServerFhirModel.Initialize(maximumSupportedSchemaVersion, true, cancellationToken);
2020-02-10 20:36:48 +03:00
}
public async Task InitWatchdogsParameters()
{
await using var conn = await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: CancellationToken.None);
using var cmd = new SqlCommand(
@"
IF object_id('dbo.Parameters') IS NOT NULL -- still need exists check for earlier versions than 43
BEGIN
INSERT INTO dbo.Parameters (Id,Number) SELECT @IsEnabledId, 1 WHERE NOT EXISTS (SELECT * FROM dbo.Parameters WHERE Id = @IsEnabledId)
INSERT INTO dbo.Parameters (Id,Number) SELECT @ThreadsId, 4 WHERE NOT EXISTS (SELECT * FROM dbo.Parameters WHERE Id = @ThreadsId)
INSERT INTO dbo.Parameters (Id,Number) SELECT @PeriodSecId, 5 WHERE NOT EXISTS (SELECT * FROM dbo.Parameters WHERE Id = @PeriodSecId)
INSERT INTO dbo.Parameters (Id,Number) SELECT @HeartbeatPeriodSecId, 2 WHERE NOT EXISTS (SELECT * FROM dbo.Parameters WHERE Id = @HeartbeatPeriodSecId)
INSERT INTO dbo.Parameters (Id,Number) SELECT @HeartbeatTimeoutSecId, 10 WHERE NOT EXISTS (SELECT * FROM dbo.Parameters WHERE Id = @HeartbeatTimeoutSecId)
INSERT INTO dbo.Parameters (Id,Number) SELECT 'Defrag.MinFragPct', 0 WHERE NOT EXISTS (SELECT * FROM dbo.Parameters WHERE Id = 'Defrag.MinFragPct')
INSERT INTO dbo.Parameters (Id,Number) SELECT 'Defrag.MinSizeGB', 0.01 WHERE NOT EXISTS (SELECT * FROM dbo.Parameters WHERE Id = 'Defrag.MinSizeGB')
END
",
conn);
await conn.OpenAsync(CancellationToken.None);
var defragWatchdog = new DefragWatchdog();
cmd.Parameters.AddWithValue("@IsEnabledId", defragWatchdog.IsEnabledId);
cmd.Parameters.AddWithValue("@ThreadsId", defragWatchdog.ThreadsId);
cmd.Parameters.AddWithValue("@PeriodSecId", defragWatchdog.PeriodSecId);
cmd.Parameters.AddWithValue("@HeartbeatPeriodSecId", defragWatchdog.HeartbeatPeriodSecId);
cmd.Parameters.AddWithValue("@HeartbeatTimeoutSecId", defragWatchdog.HeartbeatTimeoutSecId);
await cmd.ExecuteNonQueryAsync(CancellationToken.None);
await conn.CloseAsync();
}
public async Task ExecuteSqlCmd(string sql)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: CancellationToken.None);
using SqlCommand command = new SqlCommand(sql, connection);
await connection.OpenAsync(CancellationToken.None);
await command.ExecuteNonQueryAsync(CancellationToken.None);
await connection.CloseAsync();
}
2020-02-10 20:36:48 +03:00
public async Task DeleteDatabase(string databaseName, CancellationToken cancellationToken = default)
{
SqlConnection.ClearAllPools();
await _dbSetupRetryPolicy.ExecuteAsync(async () =>
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(_masterDatabaseName, cancellationToken);
await connection.OpenAsync(cancellationToken);
await using SqlCommand command = connection.CreateCommand();
command.CommandTimeout = 600;
command.CommandText = $"DROP DATABASE IF EXISTS {databaseName}";
await command.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
});
2020-02-10 20:36:48 +03:00
}
public Task DeleteAllExportJobRecordsAsync(CancellationToken cancellationToken = default)
{
_queueClient.JobInfos.Clear();
return Task.CompletedTask;
2020-02-10 20:36:48 +03:00
}
public Task DeleteExportJobRecordAsync(string id, CancellationToken cancellationToken = default)
2020-02-10 20:36:48 +03:00
{
_queueClient.JobInfos.RemoveAll((info) => info.Id == long.Parse(id));
return Task.CompletedTask;
}
public async Task DeleteSearchParameterStatusAsync(string uri, CancellationToken cancellationToken = default)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: cancellationToken);
var command = new SqlCommand("DELETE FROM dbo.SearchParam WHERE Uri = @uri", connection);
command.Parameters.AddWithValue("@uri", uri);
await command.Connection.OpenAsync(cancellationToken);
await command.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
_sqlServerFhirModel.RemoveSearchParamIdToUriMapping(uri);
}
public async Task DeleteAllReindexJobRecordsAsync(CancellationToken cancellationToken = default)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: cancellationToken);
var command = new SqlCommand("DELETE FROM dbo.ReindexJob", connection);
await command.Connection.OpenAsync(cancellationToken);
await command.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
}
public async Task DeleteReindexJobRecordAsync(string id, CancellationToken cancellationToken = default)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: cancellationToken);
var command = new SqlCommand("DELETE FROM dbo.ReindexJob WHERE Id = @id", connection);
var parameter = new SqlParameter { ParameterName = "@id", Value = id };
command.Parameters.Add(parameter);
await command.Connection.OpenAsync(cancellationToken);
await command.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
}
async Task<object> IFhirStorageTestHelper.GetSnapshotToken()
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync();
await connection.OpenAsync();
SqlCommand command = connection.CreateCommand();
command.CommandText = "SELECT MAX(ResourceSurrogateId) FROM dbo.Resource";
return await command.ExecuteScalarAsync();
}
async Task IFhirStorageTestHelper.ValidateSnapshotTokenIsCurrent(object snapshotToken)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync();
await connection.OpenAsync();
var sb = new StringBuilder();
await using (SqlCommand outerCommand = connection.CreateCommand())
{
outerCommand.CommandText = @"
SELECT t.name
FROM sys.tables t
INNER JOIN sys.columns c ON c.object_id = t.object_id
WHERE c.name = 'ResourceSurrogateId'";
await using (SqlDataReader reader = await outerCommand.ExecuteReaderAsync())
{
while (reader.Read())
{
if (sb.Length > 0)
{
sb.AppendLine("UNION ALL");
}
string tableName = reader.GetString(0);
sb.AppendLine($"SELECT '{tableName}' as TableName, MAX(ResourceSurrogateId) as MaxResourceSurrogateId FROM dbo.{tableName}");
}
}
}
await using (SqlCommand command = connection.CreateCommand())
{
command.CommandText = sb.ToString();
await using (SqlDataReader reader = await command.ExecuteReaderAsync())
{
while (await reader.ReadAsync())
{
Assert.True(reader.IsDBNull(1) || reader.GetInt64(1) <= (long)snapshotToken);
}
}
}
await connection.CloseAsync();
}
2020-02-10 20:36:48 +03:00
private SchemaInitializer CreateSchemaInitializer(string testConnectionString, int maxSupportedSchemaVersion)
2020-02-10 20:36:48 +03:00
{
var schemaOptions = new SqlServerSchemaOptions { AutomaticUpdatesEnabled = true };
Bump HealthcareSharedPackageVersion from 3.2.33 to 3.2.38 (#2355) * Bump HealthcareSharedPackageVersion from 3.2.33 to 3.2.38 Bumps `HealthcareSharedPackageVersion` from 3.2.33 to 3.2.38. Updates `Microsoft.Health.Abstractions` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Api` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Extensions.DependencyInjection` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Test.Utilities` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Core` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.SqlServer` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.SqlServer.Api` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Client` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade sdk * Added required parameters * Update runtime * Adds statement timeout for tests * Disable customSearchParam test Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com>
2021-11-17 21:00:51 +03:00
var config = Options.Create(new SqlServerDataStoreConfiguration { ConnectionString = testConnectionString, Initialize = true, SchemaOptions = schemaOptions, StatementTimeout = TimeSpan.FromMinutes(10) });
var schemaInformation = new SchemaInformation(SchemaVersionConstants.Min, maxSupportedSchemaVersion);
2020-02-10 20:36:48 +03:00
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
var sqlConnection = Substitute.For<ISqlConnectionBuilder>();
sqlConnection.GetSqlConnectionAsync(Arg.Any<string>(), Arg.Any<CancellationToken>()).ReturnsForAnyArgs((x) => Task.FromResult(GetSqlConnection(testConnectionString)));
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
SqlRetryLogicBaseProvider sqlRetryLogicBaseProvider = SqlConfigurableRetryFactory.CreateFixedRetryProvider(new SqlClientRetryOptions().Settings);
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
var sqlServerDataStoreConfiguration = new SqlServerDataStoreConfiguration() { ConnectionString = testConnectionString };
ISqlConnectionStringProvider sqlConnectionString = new DefaultSqlConnectionStringProvider(Options.Create(sqlServerDataStoreConfiguration));
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
var sqlConnectionWrapperFactory = new SqlConnectionWrapperFactory(new SqlTransactionHandler(), sqlConnection, sqlRetryLogicBaseProvider, config);
var schemaManagerDataStore = new SchemaManagerDataStore(sqlConnectionWrapperFactory, config, NullLogger<SchemaManagerDataStore>.Instance);
var schemaUpgradeRunner = new SchemaUpgradeRunner(new ScriptProvider<SchemaVersion>(), new BaseScriptProvider(), NullLogger<SchemaUpgradeRunner>.Instance, sqlConnectionWrapperFactory, schemaManagerDataStore);
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
Func<IServiceProvider, ISqlConnectionStringProvider> sqlConnectionStringProvider = p => sqlConnectionString;
Func<IServiceProvider, SqlConnectionWrapperFactory> sqlConnectionWrapperFactoryFunc = p => sqlConnectionWrapperFactory;
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
Func<IServiceProvider, SchemaUpgradeRunner> schemaUpgradeRunnerFactory = p => schemaUpgradeRunner;
Func<IServiceProvider, IReadOnlySchemaManagerDataStore> schemaManagerDataStoreFactory = p => schemaManagerDataStore;
var collection = new ServiceCollection();
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
collection.AddScoped(sqlConnectionStringProvider);
collection.AddScoped(sqlConnectionWrapperFactoryFunc);
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
collection.AddScoped(schemaManagerDataStoreFactory);
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
collection.AddScoped(schemaUpgradeRunnerFactory);
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
var serviceProvider = collection.BuildServiceProvider();
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
return new SchemaInitializer(serviceProvider, config, schemaInformation, Substitute.For<IMediator>(), NullLogger<SchemaInitializer>.Instance);
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
}
protected SqlConnection GetSqlConnection(string connectionString)
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
{
var connectionBuilder = new SqlConnectionStringBuilder(connectionString);
var result = new SqlConnection(connectionBuilder.ToString());
return result;
2020-02-10 20:36:48 +03:00
}
}
}