将 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/