entity-framework - Microsoft 对 Entity Framework 中的二级缓存有何建议?

标签 entity-framework caching entity-framework-5 data-access-layer

我用过 Jarek Kowalski 的“EF Provider Wrappers”。它工作正常,但我注意到“限制和免责声明”部分说:

The providers have not been extensively tested beyond what’s included in the sample code, so you should use them at your own risk.

As with any other sample, Microsoft is not offering any kind of support for it, but if you find bugs or have feature suggestions, please use this blog’s contact form and let me know about them.


我在这里有点困惑,微软真的希望开发人员在没有任何官方支持(或推荐)的情况下在生产网站上使用 EnityFramework 对二级缓存?

最佳答案

没有官方的二级缓存支持。我什至不确定 EF Provider 包装器是否与 .NET 4.5 兼容。二级缓存 is in backlog用于 future 版本的 EF。

您也可以实现自己的解决方案,因为 EF is fully open sourced .

顺便提一句。我已经看到数十个相当复杂的网站在没有任何缓存的情况下在生产中运行......

关于entity-framework - Microsoft 对 Entity Framework 中的二级缓存有何建议?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12000240/

相关文章:

c# - 为什么 UserManage.CreateAsync 在使用重复用户名时抛出 EntityValidationError 而不是返回失败结果?

c# - "Cloning" Entity Framework 中的 EntityConnections 和 ObjectContext

asp.net-mvc - 域模型: how and where的验证

entity-framework - 在 EF Core 2.0 中使用 OwnsOne 方法映射属性

c# - 我应该如何监听从 ObjectContext 添加/删除的实体?

c# - EF 非静态方法需要一个目标

java - 2 台服务器上的 Infinispan 集群应用程序

php - 我如何在 CakePHP 中使用缓存?

.net - XmlDocument缓存内存使用

c# - EF5 和 .NET 4.5 中的 NotMapped 错误