NHibernate 父子关系:NH 是否更新实体缓存中的父项?

发布于 2024-10-02 10:38:20 字数 75 浏览 0 评论 0原文

如果我更新父子关系中的子项,该子项也会更新 在二级缓存中。但家长呢?是否可以在没有情况下做到这一点 访问数据库?

谢谢!

If I update a child in a parent-child relationship, the child gets updated
in the L2 cache. But what about the parent? Is it possible to do this without
hitting the database?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

守护在此方 2024-10-09 10:38:20

当相应的实体更新并且相应的事务提交时,L2实体缓存也会更新。关系并不重要。

The L2 entity cache is updated when the corresponding entity is updated and the corresponding transaction is committed. Relationships don't matter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文