开发者

NHibernate parent-child relationship: does NH update parents in entity cache?

开发者 https://www.devze.com 2023-01-25 11:00 出处:网络
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

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!


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

0

精彩评论

暂无评论...
验证码 换一张
取 消