Skip to content

Commit d6dcc1a

Browse files
committed
Swapped System.Data.SqlClient with new Microsoft.Data.SqlClient
The `Microsoft.Data.SqlClient` maintains the historical functionality of `System.Data.SqlClient` while making it easier for the .NET team to maintain a shared code base between the .NET Framework and .NET Core. (The previous version, apparently, requires two separate code bases targeting different frameworks.)
1 parent aee2db3 commit d6dcc1a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

OnTopic.Data.Sql/OnTopic.Data.Sql.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<PrivateAssets>all</PrivateAssets>
4545
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
4646
</PackageReference>
47-
<PackageReference Include="System.Data.SqlClient" Version="4.7.0" />
47+
<PackageReference Include="Microsoft.Data.SqlClient" Version="1.1.1" />
4848
</ItemGroup>
4949

5050
<ItemGroup>

OnTopic.Data.Sql/SqlTopicRepository.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
using System;
77
using System.Collections.Generic;
88
using System.Data;
9-
using System.Data.SqlClient;
109
using System.Diagnostics;
1110
using System.Diagnostics.CodeAnalysis;
1211
using System.Globalization;
1312
using System.Linq;
1413
using System.Net;
1514
using System.Text;
15+
using Microsoft.Data.SqlClient;
1616
using OnTopic.Attributes;
17-
using OnTopic.Repositories;
18-
using OnTopic.Metadata;
1917
using OnTopic.Internal.Diagnostics;
18+
using OnTopic.Metadata;
19+
using OnTopic.Repositories;
2020

2121
namespace OnTopic.Data.Sql {
2222

0 commit comments

Comments
 (0)