Skip to content

Commit

Permalink
switch to Microsoft.Data.SqlClient
Browse files Browse the repository at this point in the history
  • Loading branch information
hoseinzadehashraf committed Mar 15, 2024
1 parent f1b8a56 commit 8e53da5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>2.1.1.0</Version>
<Version>3.0.0.0</Version>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>2.1.122</Version>
<Version>3.0.0</Version>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.4" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Olive.Entities.Data.SqlServer/SqlDataAccessExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public static class SqlDataAccessExtensions
{
public static DataAccessOptions SqlServer(this DataAccessOptions @this)
{
return @this.Add<System.Data.SqlClient.SqlConnection, SqlServerSqlCommandGenerator>();
return @this.Add<Microsoft.Data.SqlClient.SqlConnection, SqlServerSqlCommandGenerator>();
}
}
}
2 changes: 1 addition & 1 deletion Olive.Entities.Data.SqlServer/SqlServerManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Diagnostics;
using System.Linq;
using System.Text.RegularExpressions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<PackageReference Include="Moq" Version="4.10.0" />
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.11.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.5.1" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 8e53da5

Please sign in to comment.