title: Using LINQ with NHibernate
body: <p>Ok, I think I have all my configurations right and now I am just trying to do a select query from the database selecting some data.  Now I am using NHibernate 3.0 which I though by default support LINQ (or at least a good portion of link.  Now every LINQ example I find has this code</p>
  
  <pre><code>session.Linq&lt;User&gt;()
  </code></pre>
  
  <p>but I for the life of me can't find how or where session is being set.  Is this that proper why of doing in in 3.0 and if so how do I set sessions (what usings do I need, classes, methods, etc...)?  If not, what is the proper way of using LINQ with NHibernate 3.0?</p>
  
  <p>UPDATE:</p>
  
  <p>Now I have the following code:</p>
  
  <pre><code>var configuration = new Configuration();
  configuration.Configure();
  configuration.AddAssembly(typeof(Tag).Assembly);
  var sessionFactory = configuration.BuildSessionFactory();
  var session = sessionFactory.GetCurrentSession();
  </code></pre>
  
  <p>but I get a compiler error saying that NHibernate.ISession does not have a definition for Linq.  I have the follow usings:</p>
  
  <pre><code>using System.Collections.Generic;
  using System.Web.Mvc;
  using MyProject.Models;
  using MyProject.ViewModels.Desktop;
  using NHibernate.Cfg;
  </code></pre>
  
  <p>Am I missing something?</p>