still problems with Microsoft.Data.SqlClient versions? #534
|
is this article and the mentioned versions still relevant? or is this safe these days <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.7" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.1" /> |
Replies: 2 comments 3 replies
|
@devployment, we haven't received any reports of issues after teams have upgraded to the known fixed packages in the blog post. |
|
Hello @khalidabuhakmeh @devployment , We are currently planning to migrate our Duende IdentityServer 7.4.x solution to .NET 10 (Duende 8.0.4 ) , Entity Framework Core 10, and Microsoft.Data.SqlClient 7.0.2. While evaluating the migration, we reviewed your article: Microsoft Azure SQL and Entity Framework Core performance issues and solution (https://duendesoftware.com/blog/20250506-microsoft-azure-sql-and-entity-framework-core-performance-issues-and-solution ) In that article, you recommend using Microsoft.Data.SqlClient 5.2.2 due to the driver's automatic connection retry behavior, which could cause significant performance degradation. However, while reviewing Microsoft's documentation for Microsoft.Data.SqlClient 7.x, we found that a new overload was introduced for SqlConnection.OpenAsync() that allows applications to explicitly disable the driver's internal retry logic: SqlConnectionOverrides.OpenWithoutRetry, cancellationToken Microsoft documents this feature as follows: Support for connection invalidations was added to the OpenAsync() API. The default behavior of SqlConnection.OpenAsync() can be overridden to disable the ten-second delay and automatic connection retries triggered by transient errors. Because of this, we have a few questions regarding the recommendations in your article. Our questions
We appreciate any guidance you can provide, as we would like to ensure we are following the recommended approach before proceeding with our migration. |

It's been a while since I wrote the post, but that is Correct. If you do run into any issues, please let us know.