c# - 将项目更新到实体核心 5 后出现 Microsoft.EntityFrameworkCore.Query.IParameterValues 错误

标签 c# .net entity-framework entity-framework-core .net-5

将 ef core 从 3.1 更新到版本 5 后。我收到错误:

System.Reflection.ReflectionTypeLoadException: 'Unable to load one or more of the requested types. Could not load type 'Microsoft.EntityFrameworkCore.Query.IParameterValues' from assembly 'Microsoft.EntityFrameworkCore, Version=5.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.'

使用自动 DI 时会出现此错误。实体是否删除了此扩展? 谢谢

最佳答案

此 API 不再存在;

here it is in 3.1 ,但是当你 try for 5.0 ,它说:

The requested page is not available for Entity Framework Core 5.0. You have been redirected to the newest product version this page is available for.

所以; API 被删除 - 这在专业中是允许的,所以:停止尝试配置/使用它,我猜?

关于c# - 将项目更新到实体核心 5 后出现 Microsoft.EntityFrameworkCore.Query.IParameterValues 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65212617/

相关文章:

c# - 从多个表连接 mysql 4.0 数据的最快方法?

.net - 是否可以跟踪 ObjectContext.SaveChanges 的进度?

c# - Entity Framework N 层应用程序 - 如何设计

c# - 使用 Entity Framework 进行多对多对多

c# - .NET 没有可靠的异步套接字通信吗?

c# - Visual Studio 中的代码分析问题

c# - Excel 2016 在保存错误时触发撤消?

c# - Blazor OnAfterRenderAsync Javascript

c# - 拆箱不会创建值的副本。这是正确的吗?

c# - 如何将 XmlIncludeAttribute 应用于 TypeBuilder?