NHibernate parent-child relationship: does NH update parents in entity cache?
-
09-10-2019 - |
Question
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!
Solution
The L2 entity cache is updated when the corresponding entity is updated and the corresponding transaction is committed. Relationships don't matter.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow