I am using NHibernate Linq for a project in which one requirement is
to start with a large collection (approx. 2500 objects). The object in
the collection contains two collections - one of which could be fairly
significant for each object. As a result, I don't want to eager load
the collections. I would also like to avoid having a single session
open for each user all the time and the collections need to be updated
each time the user asks for detail.

What I had hoped to be able to do was load the base objects in the
collection and give the user the availability of a detail form. When
they request the detail form the collections would be fetched or
refetched each time that form was opened for the specific base object.

The collections are currently lazy-loaded and then fetched the first
time using reflection and NHibernateUtil.Initialize but subsequent
calls don't actually hit the database. I have tried using Evict but
that isn't causing a refetch. The cascade option is set to refresh on
both collections in the mapping file.

Is there any way to tell NHibernate that I want the collections
refreshed every time they are accessed?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to