[英]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.