0

I have an nHibernate issue with the following Linq Query. The session is not recognized. I'm sure I'm just mising a using directive or something similar. Any ideas?

var posts = (from post in session.Query<Post>().FetchMany(x => x.Comments) 
         select post).ToList();
1
  • 2
    You're going to need to provide a little more info or code. Commented Jun 10, 2011 at 21:19

1 Answer 1

4

.FetchMany requires using NHibernate.Linq;

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.