From 81344b7a36f9a8ea68bdc1b138008d967bcfb229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Lund=20J=C3=B8rgensen?= Date: Wed, 13 Nov 2019 14:33:01 +0100 Subject: [PATCH] Changed System.Data.SqlClient for Microsoft.Data.SqlClient package --- src/unQuery.PerformanceTests/ExecuteTests.cs | 2 +- src/unQuery.PerformanceTests/GetRowTests.cs | 2 +- src/unQuery.PerformanceTests/GetRowsTests.cs | 2 +- .../GetScalarTests.cs | 2 +- src/unQuery.PerformanceTests/TestFixture.cs | 2 +- src/unQuery.PerformanceTests/packages.config | 5 ++++- .../unQuery.PerformanceTests.csproj | 20 ++++++++++++++++--- .../AddParametersToCommandTests.cs | 2 +- src/unQuery.Tests/BatchExecutionerTests.cs | 2 +- src/unQuery.Tests/ExecuteTests.cs | 2 +- src/unQuery.Tests/GetOpenConnectionTests.cs | 2 +- src/unQuery.Tests/GetScalarTests.cs | 2 +- src/unQuery.Tests/QueryOptionsTests.cs | 2 +- .../SqlTypes/SqlStructuredTests.cs | 2 +- src/unQuery.Tests/TestHelper.cs | 2 +- src/unQuery.Tests/packages.config | 5 ++++- src/unQuery.Tests/unQuery.Tests.csproj | 20 ++++++++++++++++--- src/unQuery/BatchExecutor.cs | 2 +- src/unQuery/DB.cs | 2 +- src/unQuery/PublicSqlCommandSet.cs | 6 +++--- src/unQuery/SqlTypes/ExplicitMaxLengthType.cs | 4 ++-- .../SqlTypes/ExplicitPrecisionAndScaleType.cs | 4 ++-- src/unQuery/SqlTypes/ExplicitScaleType.cs | 4 ++-- src/unQuery/SqlTypes/ExplicitValueType.cs | 4 ++-- src/unQuery/SqlTypes/ImplicitValueType.cs | 4 ++-- src/unQuery/SqlTypes/SqlBigInt.cs | 2 +- src/unQuery/SqlTypes/SqlBinary.cs | 2 +- src/unQuery/SqlTypes/SqlBit.cs | 2 +- src/unQuery/SqlTypes/SqlChar.cs | 2 +- src/unQuery/SqlTypes/SqlDate.cs | 2 +- src/unQuery/SqlTypes/SqlDateTime.cs | 2 +- src/unQuery/SqlTypes/SqlDateTime2.cs | 2 +- src/unQuery/SqlTypes/SqlDateTimeOffset.cs | 2 +- src/unQuery/SqlTypes/SqlDecimal.cs | 2 +- src/unQuery/SqlTypes/SqlFloat.cs | 2 +- src/unQuery/SqlTypes/SqlImage.cs | 2 +- src/unQuery/SqlTypes/SqlInt.cs | 2 +- src/unQuery/SqlTypes/SqlMoney.cs | 2 +- src/unQuery/SqlTypes/SqlNChar.cs | 2 +- src/unQuery/SqlTypes/SqlNText.cs | 2 +- src/unQuery/SqlTypes/SqlNVarchar.cs | 2 +- src/unQuery/SqlTypes/SqlReal.cs | 2 +- src/unQuery/SqlTypes/SqlSmallDateTime.cs | 2 +- src/unQuery/SqlTypes/SqlSmallInt.cs | 2 +- src/unQuery/SqlTypes/SqlSmallMoney.cs | 2 +- src/unQuery/SqlTypes/SqlStructured.cs | 4 ++-- src/unQuery/SqlTypes/SqlText.cs | 2 +- src/unQuery/SqlTypes/SqlTime.cs | 2 +- src/unQuery/SqlTypes/SqlTinyInt.cs | 2 +- src/unQuery/SqlTypes/SqlType.cs | 4 ++-- src/unQuery/SqlTypes/SqlTypeHandler.cs | 4 ++-- src/unQuery/SqlTypes/SqlUniqueidentifier.cs | 2 +- src/unQuery/SqlTypes/SqlVarBinary.cs | 2 +- src/unQuery/SqlTypes/SqlVarchar.cs | 2 +- src/unQuery/SqlTypes/SqlXml.cs | 2 +- src/unQuery/StructuredDynamicYielder.cs | 2 +- src/unQuery/unQuery.csproj | 2 +- src/unQuery/unQueryDB.cs | 2 +- 58 files changed, 106 insertions(+), 72 deletions(-) diff --git a/src/unQuery.PerformanceTests/ExecuteTests.cs b/src/unQuery.PerformanceTests/ExecuteTests.cs index 6e6768f..da91bfd 100644 --- a/src/unQuery.PerformanceTests/ExecuteTests.cs +++ b/src/unQuery.PerformanceTests/ExecuteTests.cs @@ -1,7 +1,7 @@ using NUnit.Framework; using System; using System.Data; -using System.Data.SqlClient; +using Microsoft.Data.SqlClient; using unQuery.SqlTypes; namespace unQuery.PerformanceTests diff --git a/src/unQuery.PerformanceTests/GetRowTests.cs b/src/unQuery.PerformanceTests/GetRowTests.cs index 649d2c7..3ea25b8 100644 --- a/src/unQuery.PerformanceTests/GetRowTests.cs +++ b/src/unQuery.PerformanceTests/GetRowTests.cs @@ -1,7 +1,7 @@ using NUnit.Framework; using System; using System.Data; -using System.Data.SqlClient; +using Microsoft.Data.SqlClient; using unQuery.SqlTypes; namespace unQuery.PerformanceTests diff --git a/src/unQuery.PerformanceTests/GetRowsTests.cs b/src/unQuery.PerformanceTests/GetRowsTests.cs index 9de3d1c..ee1d03a 100644 --- a/src/unQuery.PerformanceTests/GetRowsTests.cs +++ b/src/unQuery.PerformanceTests/GetRowsTests.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using System.Data; -using System.Data.SqlClient; +using Microsoft.Data.SqlClient; using unQuery.SqlTypes; namespace unQuery.PerformanceTests diff --git a/src/unQuery.PerformanceTests/GetScalarTests.cs b/src/unQuery.PerformanceTests/GetScalarTests.cs index ac727df..8c00c77 100644 --- a/src/unQuery.PerformanceTests/GetScalarTests.cs +++ b/src/unQuery.PerformanceTests/GetScalarTests.cs @@ -1,6 +1,6 @@ using NUnit.Framework; using System.Data; -using System.Data.SqlClient; +using Microsoft.Data.SqlClient; namespace unQuery.PerformanceTests { diff --git a/src/unQuery.PerformanceTests/TestFixture.cs b/src/unQuery.PerformanceTests/TestFixture.cs index 18b4e3e..059e153 100644 --- a/src/unQuery.PerformanceTests/TestFixture.cs +++ b/src/unQuery.PerformanceTests/TestFixture.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using System.Configuration; -using System.Data.SqlClient; +using Microsoft.Data.SqlClient; using System.Diagnostics; using System.Linq; using System.Threading; diff --git a/src/unQuery.PerformanceTests/packages.config b/src/unQuery.PerformanceTests/packages.config index f355f23..44147d3 100644 --- a/src/unQuery.PerformanceTests/packages.config +++ b/src/unQuery.PerformanceTests/packages.config @@ -1,8 +1,11 @@  + + + - + diff --git a/src/unQuery.PerformanceTests/unQuery.PerformanceTests.csproj b/src/unQuery.PerformanceTests/unQuery.PerformanceTests.csproj index dce8a11..a3e80bf 100644 --- a/src/unQuery.PerformanceTests/unQuery.PerformanceTests.csproj +++ b/src/unQuery.PerformanceTests/unQuery.PerformanceTests.csproj @@ -45,6 +45,12 @@ + + ..\..\packages\Microsoft.Data.SqlClient.1.0.19269.1\lib\net46\Microsoft.Data.SqlClient.dll + + + ..\..\packages\Microsoft.Identity.Client.3.0.8\lib\net45\Microsoft.Identity.Client.dll + ..\..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll @@ -55,12 +61,17 @@ - - - ..\..\packages\System.Data.SqlClient.4.7.0\lib\net461\System.Data.SqlClient.dll + + ..\..\packages\System.Data.Common.4.3.0\lib\net451\System.Data.Common.dll + True + True + + + + ..\..\packages\System.Security.AccessControl.4.6.0\lib\net461\System.Security.AccessControl.dll @@ -73,6 +84,7 @@ + @@ -107,7 +119,9 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + +