In case anyone runs into this issue - I was using the configuration for testing and in seeding data for testing I needed to Evict the entity since it was being tracked by the current session. Once I did this I could see NHibernate reach back to the server in order to retrieve collections/properties that we're not eagerly loaded.
tx.Commit(); _session.Flush(); _session.Evict(partner); On Monday, April 20, 2020 at 8:18:12 PM UTC-7, beto wrote: > > Hello Everyone, > > I've been out of the Nhibernate game for 4 years and just getting back to > it on a new project. For the life of me I cannot get lazy loading to work > both on collections or properties, see my model, mapping, and configuration > attached. > > I'm using AutoFac as an IoC but I don't believe that should have an > affect. Unless something changed from Nhibernate 3 (last version I used) > to NHibernate 5 that I am not aware. > > Thank you for the help. > > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nhusers/1ef8d855-04ea-489e-a783-91d98070d1e8%40googlegroups.com.