Hi

in 3.2 alpha3 querycaching when eager loading throws.

i think (didn't proved that) it was introduced in r5793 so here ist a
test for nhibernate\src\NHibernate.Test\NHSpecificTest
\NH2673\CachingWithTrasformerTests.cs:

                                [Test]
                public void WhenEagerLoadingWithCriteriaThenNotThrows()
                {
                        using (new Scenario(Sfi))
                        {
                                using (var session = OpenSession())
                                using (var tx = session.BeginTransaction())
                                {
                                        var query = 
session.CreateCriteria<Blog>()
                                                .SetFetchMode("Posts", 
FetchMode.Eager)
                                                .SetCacheable(true);
                                        query.Executing(q => 
q.List<Blog>()).NotThrows();
                                        tx.Commit();
                                }
                        }
                }

if creating a jira bug or a patch for the test pls let me know

regards andy

-- 
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