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
failing 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();
                                }
                        }
                }

regards andy

Reply via email to