Q:

Why dont any queries get run when using linq after upgrading to nhibernate 3.0

i was using nhibernate 2.1 and the linq provider.  i had the following code:
public IQueryable<T> Query<T>()
{
     return Session.Linq<T>();
}

which would allow me to run queries like this:
IEnumerable<Picture> pictures = Query<Picture>();

i just upgraded to nhibernate 3.0 (which seems to have more mature linq functionality) and this code
Session.Linq<T>

doesn't compile
i tried replacing it with:
Session.Query<T>

which compiled but all my queries now return 0 records.
can anyone help explain to me the upgrade path for this and if i am doing something wrong?  based on this post, this syntax should work but always seems to return 0 records.
NOTE:
Some additional info:  I just ran nhibernate profiler and it detects the session but it doesn't show any SQL queries being run.  Is there any reason that anyone can think of that would not have this run any query??

A:

I figured it out.  The issue was a post build event that was running a script to copy the old version of nhibernate back to the bin directory

