title: Issue Rebind NInject while dynamically change the connection string
body: <p>In connection string i should dynamically passing the loggeduserid value by using the attribute application name=userid in connection string and getting into SQL Server by using the query select app_name().</p>
  
  <p>Technologies used:
  1).net 4.0
  2)NHibernate
  3)Ninject</p>
  
  <p>Before logged-in i am using Ninject IoC container and NHibernate to load the connection string without the application name attribute and after logged in I am passing the logged user id as a constructor value and rebinding the NhibernateConfiguration class is as follows</p>
  
  <p>Before Logged in inject the NHibernateConfiguration</p>
  
  <pre><code>public override void Load()
          {
              Bind&lt;ISession&gt;().ToMethod(x =&gt; x.Kernel.Get&lt;NHibernateConfiguration&gt;()
                                                 .GetSessionFactory()
                                                 .OpenSession());
  
              Bind&lt;ISessionFactory&gt;().ToMethod(x =&gt; x.Kernel.Get&lt;NHibernateConfiguration&gt;().GetSessionFactory());
  
          }
  </code></pre>
  
  <p>After logged in passing the loggeduserid with the constructor argument is as follows.</p>
  
  <pre><code>using (var kernal = ServiceLocator.GetKernel())
  {
   kernal.Rebind&lt;NHibernateConfiguration&gt;().To&lt;NHibernateConfiguration&gt;()
  .WithConstructorArgument("loggedUserId", user.Id);
  }
  </code></pre>
  
  <p>but I am not able rebind or inject the NHibernateConfiguration class .</p>
  
  <p>Please help me how to rebind the NHibernateConfiguration class by using Ninject</p>