Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I've run into the limits of what NHibernate 3.0's LINQ provider is capable of and decided it's time to learn about one of the more powerful (or at least feature-complete) options: the QueryOver API.

The problem is, I have zero experience with ICriteria, and all of the tutorials I've been able to find online either:

  1. Assume I'm an ICriteria expert and simply show me how to convert ICriteria code to the new fluent interface, or
  2. Are trivial "here's how you do an inner join" examples that don't really help me understand more complex concepts like projections, subqueries, requirements, or whatever other magic the API is capable of.

What should I read to really learn about QueryOver, and how to make full use of it?

share|improve this question

migrated from stackoverflow.com Aug 24 '11 at 21:08

This question came from our site for professional and enthusiast programmers.

2 Answers 2

This seems to be the closest thing to official documentation..

QueryOver in NH 3.0

Beyond that I think it's mentioned in NHibernate Cookbook 3.0 and there are probably assorted other blog posts out there. So that should get you started but to be an expert? Uhm.. read the source is probably your best hope there.

share|improve this answer
The Docs are not that bad for a .net project.... really... –  CtrlDot Aug 24 '11 at 17:13
That link has a nice feature summary, but I'm interested in something a bit more substantial. –  Brant Bobby Aug 24 '11 at 18:48
Yeah.. me too.. hopefully someone else has a hidden link up their sleeves but I doubt it.. –  ShaneC Aug 24 '11 at 20:56
I just pulled out NHibernate 3.0 Cookbook, and page 125 has a section on Criteria queries, and then it follows (page 130) with QueryOver queries, which refers you back to the previous section for "more info". –  Scott Whitlock Nov 5 '12 at 16:14

This post is the best resource I have found so far for using QueryOver.

Another resource that we've been passing around at work is the Nhibernate 3.0 Cookbook. I literally just got my hands on it, so I don't have a review for you.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.