-
Notifications
You must be signed in to change notification settings - Fork 274
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
Does this package Microsoft.Data.SqlClient work with Entity Framework? #725
Comments
EF 6 is not compatible with Microsoft.Data.SqlClient - one of the issues is that EF6 targets net40, and M.D.S lowest target is netstandrad2.0 |
Thank you @ErikEJ for the clarification. Could you please also tell me if there is any workaround to make the above code work or what would be the recommended approach to switch to Microsoft.Data.SqlClient in my application. |
@surajpatil9211 EntityFramework Core internally uses Microsoft.Data.SqlClient so maybe you can switch to that if possible. |
EF Core, raw ADO.NET, Dapper... |
@ErikEJ Thanks for clarification and support. |
@ErikEJ @karinazhou Thank you for the clarification. |
For the benefit of others looking into this too, this issue in the EF6 repo is the one to follow: dotnet/ef6#823 |
FYI, I just published a preview package: https://github.com/ErikEJ/EntityFramework6PowerTools/blob/community/README.md#preview-of-ef6-sql-server-provider-based-on-microsoftdatasqlclient |
My application runs on .NET framework 4.7 and I'm using Entity Framework 6.1.3. Currently, my code uses some classes from the namespace System.Data.SqlClient such as SqlParameter. I want to switch to Microsoft.Data.SqlClient. However, I'm not sure if EF6 is compatible with Microsoft.Data.SqlClient.
Everything has been working well with System.Data.SqlClient for the below code
However, when I am switching to Microsoft.Data.SqlClient, I'm getting this error:
The text was updated successfully, but these errors were encountered: