-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Microsoft.Data.SqlClient v2.1.0 #23453
Comments
The short summary is:
|
@cheenamalhotra Done automatically already for 6.0: #23434 We generally don't update to a new point release in a patch, but we will consider it if the issues fixed are significant. |
@cheenamalhotra @ajcvickers How about EF Core 3.1? Will it switch to SqlClient 2.x on some point or will those fixes to be ported to SqlClient 1.x? |
@olljanat You can just update to use 2.1.0 with EF Core 3.x: https://erikej.github.io/efcore/sqlclient/2020/03/22/update_mds.html |
@ErikEJ but are those versions compatible? I assume that there is some breaking change which why version number was raised from 1.x to 2.x? |
Yes, no breaking changes for EF Core |
Discussed in triage. We will hold off on updating the dependency in 5.0.x for now to allow further feedback on the SqlClient 2.1, since it is newly released. We will then make a call as to whether or not to take this to Tactics. |
We discussed this again and decided not to bump to a new point release in out patch release. This is not in the spirit of semantic versioning. The correct thing to do is for people to explicitly specify the higher package version. EF Core 6.0 will depend on the latest released M.D.SqlClient package. |
is there a support matrix of SQL Data Client for EF Core SQL Provider somewhere? |
There is some general advice here: https://docs.microsoft.com/en-us/ef/core/providers/sql-server/?tabs=dotnet-core-cli (there is some known issues with 3.0.0 ) |
@ErikEJ Do you have links for any of the known issues using EF Core with the |
The only issue I know of is the row version null fix, where the AppContext switch is not working as expected, a PR is currently under review. If that gets released with 3.0.1, then you probably still need the AppContext switch with EF Core, but not sure. |
looks like the fix to this made it to 3.0.1 via dotnet/SqlClient#1246 |
Currently EF Core 5.0 references v2.0.1 of Microsoft.Data.SqlClient that can cause some issues we recently addressed in v2.1.0:
Release Notes
Most important issues for EF users that were solved with v2.1.0:
Microsoft.Data.SqlClient.SNI.pdb not found with V2.0.0 SqlClient#652 (comment) - fixed by Update SNI to latest v2.1.1 for fixing pdb issues in .NET Core SqlClient#764
InvalidOperationException
andNotSupportedException
errors due toWriteAsync
collisions (important fix as impact was high) InvalidOperationException when writing a lot of packets asynchronously and using managed SNI implementation SqlClient#786 (comment) - fixed by Fixes "InvalidOperationException" errors by performing async operations in SemaphoreSlim SqlClient#796and many more bug fixes :)
Please update dependency on Microsoft.Data.SqlCLient to v2.1.0 when appropriate.
The text was updated successfully, but these errors were encountered: