Skip to content

Commit 159dbf9

Browse files
Upgrade the SqlClient to the Microsoft.Data.SqlClient v3.0.1 (#182)
Co-authored-by: AlexUstinov <alex.ustinov@servicetitan.com>
1 parent 83ea91c commit 159dbf9

22 files changed

Lines changed: 71 additions & 72 deletions

File tree

Extensions/Xtensive.Orm.Reprocessing/HandleUniqueConstraintViolationStrategy.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.Data.SqlClient;
1+
// Copyright (C) 2009-2021 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
4+
5+
using Microsoft.Data.SqlClient;
26
using System.Transactions;
37

48
namespace Xtensive.Orm.Reprocessing

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/Azure/Driver.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2009-2021 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44
// Created by: Denis Krjuchkov
55
// Created: 2009.07.07
66

77
using Xtensive.Sql.Info;
8-
using SqlServerConnection = System.Data.SqlClient.SqlConnection;
8+
using SqlServerConnection = Microsoft.Data.SqlClient.SqlConnection;
99

1010
namespace Xtensive.Sql.Drivers.SqlServer.Azure
1111
{

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/Azure/ServerInfoProvider.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2009-2021 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44
// Created by: Dmitri Maximov
55
// Created: 2009.11.09
66

7-
using Xtensive.Sql.Info;
8-
using SqlServerConnection = System.Data.SqlClient.SqlConnection;
7+
using SqlServerConnection = Microsoft.Data.SqlClient.SqlConnection;
98

109
namespace Xtensive.Sql.Drivers.SqlServer.Azure
1110
{

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/Connection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
using System;
88
using System.Data;
99
using System.Data.Common;
10-
using System.Data.SqlClient;
10+
using Microsoft.Data.SqlClient;
1111
using System.Threading;
1212
using System.Threading.Tasks;
13-
using SqlServerConnection = System.Data.SqlClient.SqlConnection;
13+
using SqlServerConnection = Microsoft.Data.SqlClient.SqlConnection;
1414

1515
namespace Xtensive.Sql.Drivers.SqlServer
1616
{

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/Driver.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2009-2021 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44
// Created by: Denis Krjuchkov
55
// Created: 2009.06.23
66

77
using System;
88
using System.Collections.Generic;
9-
using System.Data.SqlClient;
9+
using Microsoft.Data.SqlClient;
1010
using Xtensive.Sql.Info;
1111

1212
namespace Xtensive.Sql.Drivers.SqlServer

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/DriverFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
using System;
88
using System.Collections.Generic;
99
using System.Data.Common;
10-
using System.Data.SqlClient;
10+
using Microsoft.Data.SqlClient;
1111
using System.Threading;
1212
using System.Threading.Tasks;
1313
using Xtensive.Orm;
1414
using Xtensive.Sql.Info;
1515
using Xtensive.SqlServer.Resources;
16-
using SqlServerConnection = System.Data.SqlClient.SqlConnection;
16+
using SqlServerConnection = Microsoft.Data.SqlClient.SqlConnection;
1717

1818
namespace Xtensive.Sql.Drivers.SqlServer
1919
{

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/InternalHelpers.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// Copyright (C) 2020 Xtensive LLC.
1+
// Copyright (C) 2020-2021 Xtensive LLC.
22
// This code is distributed under MIT license terms.
33
// See the License.txt file in the project root for more information.
44
// Created by: Alexey Kulakov
55
// Created: 2020.04.10
66

77
using System;
8-
using System.Collections.Generic;
9-
using System.Data.SqlClient;
8+
using Microsoft.Data.SqlClient;
109
using System.Data.SqlTypes;
1110
using Xtensive.Core;
1211

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/SqlServerTypeMapper.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
// Copyright (C) 2012 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2012-2021 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44
// Created by: Denis Krjuchkov
55
// Created: 2012.06.07
66

77
using System;
8-
using System.Data;
98
using System.Data.Common;
10-
using System.Data.SqlClient;
9+
using Microsoft.Data.SqlClient;
1110

1211
namespace Xtensive.Sql.Drivers.SqlServer
1312
{

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/v09/Driver.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2009-2021 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44

55
using System;
66
using Xtensive.Sql.Compiler;
77
using Xtensive.Sql.Info;
8-
using SqlServerConnection = System.Data.SqlClient.SqlConnection;
8+
using SqlServerConnection = Microsoft.Data.SqlClient.SqlConnection;
99

1010
namespace Xtensive.Sql.Drivers.SqlServer.v09
1111
{

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/v09/ServerInfoProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Copyright (C) 2003-2020 Xtensive LLC.
1+
// Copyright (C) 2009-2021 Xtensive LLC.
22
// This code is distributed under MIT license terms.
33
// See the License.txt file in the project root for more information.
44

55
using System;
66
using Xtensive.Sql.Info;
7-
using SqlServerConnection = System.Data.SqlClient.SqlConnection;
7+
using SqlServerConnection = Microsoft.Data.SqlClient.SqlConnection;
88

99
namespace Xtensive.Sql.Drivers.SqlServer.v09
1010
{

0 commit comments

Comments
 (0)