When I try to compile the following code
using System; using System.Collections.Generic; using System.Reflection; using System.Linq; using NHibernate; name
ISession.Query
is new to NHibernate 3 and is an extension method. Try
using NHibernate.Linq
and it should be resolved fine.