Hi All,

I've run into an issue with EagerFetching and Query Cache.  Basically
when a query is run with EagerFetching after the same query has been
cached then EagerFetching is ignored.  Eg:

// Ensure query cache is enabled
ICriteria c = ...;
c.SetFetchMode("Children", FetchMode.Eager);
c.SetResultTransformer(CriteriaUtil.DistinctRootEntity);
c.List<Parent>();
Assert.IsTrue(NHibernateUtil.IsInitiazed(c.First().Children));

EndNHSession(); StartNHSession();
// Same code as above..
ICriteria c = ...;
c.SetFetchMode("Children", FetchMode.Eager);
c.SetResultTransformer(CriteriaUtil.DistinctRootEntity);
c.List<Parent>();
Assert.IsTrue(NHibernateUtil.IsInitiazed(c.First().Children)); //
FAILS!!!!

-------------------------

Any help would be greatly appreciated.

Thanks

Guido Tapia
--~--~---------~--~----~------------~-------~--~----~
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