I'm going to hazard a guess and say that .Query<Person>() is not a supported method.

If it isn't, then, to my knowledge, there is no way you can make it supported; you would need to look for an alternative for querying / gathering data to be queried.


I think you missed to add using:

using NHibernate.Linq;

Query<T> is an extension method in the NHibernate.Linq namespace.


In NHibernate you can use SessionInstance.Linq. Tried that?

var q = from Person p in SessionInstance.Linq<Person>()
        select p;

Related Articles