通过 nuget 下载 EF6 并尝试运行我的项目后,它返回以下错误:
No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.
最佳答案
我刚刚遇到了同样的问题,尽管从 NuGet 包管理器安装了 EntityFramework,但它看起来并没有正确安装在项目中。
我设法通过在 Package Manager Console 上运行以下命令来修复它:
PM> Install-Package EntityFramework
关于entity-framework - 未找到具有固定名称 'System.Data.SqlClient' 的 ADO.NET 提供程序的 Entity Framework 提供程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18455747/