This project is read-only.

How is Lazy Loading or Eager Loading handled

Topics: Customizing Orchard
May 19, 2011 at 1:40 PM

What are the conventions for Lazy Loading or Eager Loading of ContentRecords in Orchard ?

What are the extension points around FluentNHibernates Mappings overrides ?

Feb 8, 2012 at 8:22 AM

I have the same question but about IRepository<>.Table propery. It is configured for lazy loading.

What is the best practive for Eager loading - IQueryable hides NHibernate interface in IRepository.

Mar 5, 2012 at 2:04 PM

I am also wondering about this. Right now it'll be fine to eager load, but i'm curious about cases in the future where I might try to optimize the db queries for pages that only want to display the parent content part and don't need to load the collection of related part records. 

Let's say I have OrderPart, and it has an IList<ProductPart> property called Products. From what I understand right now, if I load an OrderPart, it will load the "Products" IList, correct? Is there a way to load an OrderPart and force NHibernate or Orchard to not load the "Products" collection?