Hello,
I have the following failling test:

        [Test]
        public void Is_Lazy_Loaded_By_Default()
        {
            // .Single BUG?: IList are null and not of type
PersistentGenericBag
            var post = _repository.Single(x => x.Id == _postId);
            //post = _repository.First(x => x.Title.Contains("Lazy
Loading is fun!"));

            Assert.IsFalse(NHibernateUtil.IsInitialized(post.Author));
 
Assert.IsFalse(NHibernateUtil.IsInitialized(post.Comments));
            Assert.IsFalse(NHibernateUtil.IsInitialized(post.Tags));
        }

The proxy behaviour (if any) for .Single() is different than the one
for .First()... (see comments in the snippet)
Anyone experienced this issue?

There's no magic behind the repository:

        _session.Query<T>().Expression

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