Using LazyItemEnumerable being used even with presence of Cachable=true & IsLazy = false
See original GitHub issueI’m seeing errors related to a disposed SitecoreContext trying to be used, this would make sense if I were trying to access a cached item that has lazily loaded properties but I’ve made every attempt to disable lazy loading in the solution. I’ve appended [SitecoreType(Cachable = true, AutoMap = true)] to every model in the project and [SitecoreChildren(IsLazy = false, InferType = true)] to every IEnumerable property and yet I can see in the errors that Glass.Mapper.Sc.LazyItemEnumerable`1.ProcessItems() is still being used, which then is cached resulting in the SitecoreContext going out of scope.
I’ve tried to follow all the instructions on the GlassMapper website to disable LazyLoading, could you please advise how I can prevent the solution using LazyLoading?
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (3 by maintainers)
Top GitHub Comments
whatever became of looking next week?
Hi
Thanks for sending the test case. I will take a look next week.
Mike
On Sat, 10 Nov 2018, 20:35 Niclas Leon Bock <notifications@github.com wrote: