title: Ninject ignoring [Inject] attribute
body: <p>I've got a setup with Ninject and NHibernate like this. Now, if I have this scenario.. </p>
  
  <pre class="lang-cs prettyprint-override"><code>class HomeController : Controller
  {
   [Inject]
   public ISession Session { get; set; }
  
  }
  </code></pre>
  
  <p>This works properly.</p>
  
  <p>But if I make another class ... </p>
  
  <pre class="lang-cs prettyprint-override"><code>class QueryObject
  {
   [Inject]
   public ISession Session { get; set; }
  }
  
  // .. somewhere else in my program.
  var test = new QueryObject().Execute();
  </code></pre>
  
  <p>The ISession is null! This is not just with ISession, it is with anything I try to inject. </p>
  
  <p>Here is my SessionModule:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class SessionModule : Ninject.Modules.NinjectModule
  {
      private static ISessionFactory sessionFactory;
  
      public override void Load()
      {
          Bind&lt;ISessionFactory&gt;()
              .ToMethod(c =&gt; CreateSessionFactory())
              .InSingletonScope();
  
          Bind&lt;ISession&gt;()
              .ToMethod(c =&gt; OpenSession())
              .InRequestScope()
              .OnActivation(session =&gt;
              {
                  session.BeginTransaction();
                  session.FlushMode = FlushMode.Commit;
              })
              .OnDeactivation(session =&gt;
              {
                  if (session.Transaction.IsActive)
                  {
                      try
                      {
                          session.Transaction.Commit();
                      }
                      catch
                      {
                          session.Transaction.Rollback();
                      }
                  }
              });
      }
  
      /// &lt;summary&gt;
      /// Create a new &lt;see cref="NHibernate.ISessionFactory"/&gt; to connect to a database.
      /// &lt;/summary&gt;
      /// &lt;returns&gt;
      /// A constructed and mapped &lt;see cref="NHibernate.ISessionFactory"/&gt;.
      /// &lt;/returns&gt;
      private static ISessionFactory CreateSessionFactory()
      {
          if (sessionFactory == null)
              sessionFactory = Persistence.SessionFactory.Map
                  (System.Web.Configuration
                      .WebConfigurationManager
                      .ConnectionStrings["Local"]
                      .ConnectionString
                  );
          return sessionFactory;
      }
  
      /// &lt;summary&gt;
      /// Open a new &lt;see cref="NHibernate.ISession"/&gt; from a &lt;see cref="NHibernate.ISessionFactory"/&gt;.
      /// &lt;/summary&gt;
      /// &lt;returns&gt;
      /// A new &lt;see cref="NHibernate.ISession"/&gt;.
      /// &lt;/returns&gt;
      private static ISession OpenSession()
      {
          // check to see if we even have a session factory to get a session from
          if (sessionFactory == null)
              CreateSessionFactory();
  
          // open a new session from the factory if there is no current one
          return sessionFactory.OpenSession();
      }
  }
  </code></pre>