简体   繁体   English

EF Core 3.1 - 如何使用 InMemory Provider 检测客户端评估错误?

[英]EF Core 3.1 - how to detect client-side evaluation errors using the InMemory Provider?

After upgrading the EF Core to the 3.1 version, we starting getting runtime exceptions related to Client-side evaluations ( Client vs. Server Evaluation ).将 EF Core 升级到 3.1 版本后,我们开始收到与客户端评估( 客户端与服务器评估)相关的运行时异常。 We are using the InMemory Provider to tests our EF Core code, all our tests are passing.我们正在使用InMemory Provider来测试我们的 EF Core 代码,我们所有的测试都通过了。

I would like to know if is possible to detect those exceptions in some way in the tests.我想知道是否可以在测试中以某种方式检测到这些异常。

you should have integration tests running against real integ db.您应该针对真正的 integ db 运行集成测试。 i too have experienced some issues where all test passed on inmemory db but then failed when running on real db.我也遇到过一些问题,所有测试都通过内存数据库,但在真实数据库上运行时失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有布尔异步调用的 EF Core 3.1 客户端评估问题 - EF Core 3.1 Client Side Evaluation Issue With Boolean Async Call EF Core Any in Any客户端评估 - EF Core Any in Any client side evaluation EF Core 异步客户端评估 - EF Core async client side evaluation 如何在 ASP.NET Core 3.1 MVC 中进行RequiredIf 客户端和服务器端验证? - How to make RequiredIf Client-side and server-side validation in ASP.NET Core 3.1 MVC? 如何修改基于表达式的过滤器以避免在 Entity Framework Core 3.0 中进行客户端评估 - How to modify expression-based filters to avoid client-side evaluation in Entity Framework Core 3.0 Entity Framework Core 3.1.5:如何在 linq 查询之外提取表集合逻辑以避免客户端评估错误? - Entity Framework Core 3.1.5: How to take a table collection logic out side of a linq query to avoid client-side evaluation error? ef core 5 InMemory 测试 - ef core 5 InMemory testing 将客户端 Blazor 添加到现有的 Asp.Net Core 3.1 应用程序 - Add client-side Blazor to existing Asp.Net Core 3.1 App 为什么客户端 Blazor 使用 .NET Standard 2.0 以及如何将 .NET Core 3.0 与 Blazor 一起使用? - Why is client-side Blazor using .NET Standard 2.0 and how to use .NET Core 3.0 with Blazor? 如何使用 ASP.NET Core 更改输入字段的客户端验证错误 CSS 类? - How to alter the client-side validation error CSS class of an input field using ASP.NET Core?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM