How to not-load a reference/collection in NHibernate unless it is eagerly preloaded?
I would like to create a requirement to pre-load all required entities before displaying them, to minimize the amount of database calls that are caused by negligence. Is it possible to force NHibernate to test a collection before returning it?

I had in mind something like checking `NHibernateUtil.IsInitialized()` before returning the object, not sure how to implement it globally without manually doing it for every property though.

Note: I would not want to enable eager loading for the whole application, just introduce a slightly smarter lazy-loading.
How to not-load a reference/collection in NHibernate unless it is eagerly preloaded?
===

I would like to create a requirement to pre-load all required entities before displaying them, to minimize the amount of database calls that are caused by negligence. Is it possible to force NHibernate to test a collection before returning it?

I had in mind something like checking `NHibernateUtil.IsInitialized()` before returning the object, not sure how to implement it globally without manually doing it for every property though.

Note: I would not want to enable eager loading for the whole application, just introduce a slightly smarter lazy-loading.