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 Query

More Query from same tag