Entity framework ProviderIncompatibleException与实体框架
当我发出此命令时,总是出现此错误Entity framework ProviderIncompatibleException与实体框架,entity-framework,visual-studio-2010,visual-studio-2012,visual-studio-2013,Entity Framework,Visual Studio 2010,Visual Studio 2012,Visual Studio 2013,当我发出此命令时,总是出现此错误 http://localhost:19572/api/courses 此方法正在生成异常 public IQueryable GetAllCourses() { return _ctx.Courses .Include(“CourseSubject”) .Include(“CourseTutor”) .AsQueryable(); } 例外情况: System
http://localhost:19572/api/courses
此方法正在生成异常
public IQueryable GetAllCourses()
{
return _ctx.Courses
.Include(“CourseSubject”)
.Include(“CourseTutor”)
.AsQueryable();
}
例外情况:
System.Data.Entity.CoreProviderIncompatibleException发生在
EntityFramework.dll`中,但未在用户代码中处理
其他信息从数据库获取提供程序信息时出错。这可能是由于实体框架使用了不正确的连接字符串造成的。检查内部异常以了解详细信息,并确保连接字符串正确
当我在Fiddler中检查JSON元素时,我总是得到这个
ExceptionMessage=系统找不到指定的文件ExceptionType=System.ComponentModel.Win32Exception
消息=发生错误
我使用的是实体框架6.0.1,我尝试了5个,但没有成功,所以我发现Entity Framework版本有什么问题吗?您是否检查了消息中提到的可能错误-连接字符串不正确?这是我的驱动器文件夹的链接,有一个项目我不知道,它可能会在您的计算机上工作,这是我关注的博客