What reference I need to use NHibernate QueryOver?

754 Views Asked by At

I can't find out what namespace reference is needed to use NHibernate's QueryOver?

How do you find out this type of things anyway? Is there any searchable documentation where I "should have looked"?

2

There are 2 best solutions below

1
On BEST ANSWER

You just need a reference to NHibernate (it's a method of ISession). Do note, though, that it's only available starting in NH 3.0.

using NHibernate;

More here.

0
On
using NHibernate; 

is the reference that you need to add..

Apart from this I would suggest you try out this amazing tool call Resharper. If you start using it you will never ever work without it believe me.. its the best tool i have used in a year. try the trial version and then think about getting a licence. here is the link Resharper

Enjoy..