Reputation: 18909
I am not understanding the following scenario. I have a situation where I need to load children and grandchildren along with an entity. I have specified that collections are lazyloaded, but eagerly fetch all rows using detached criteria and setfetchmode to eager. I have the following problem:
How to I ensure that the entire graph returned by the results remains in tact in the MemoryCacheManager object? Does session.Evict help me?
Upvotes: 1
Views: 545
Reputation: 18909
Ended up using QueryOver future queries and flattened the results into a DTO and ended up caching the DTO.
Upvotes: 1