title: Autofac resolving parameters in runtime
body: <p>Let's get straight.
  I have interface and class like this:</p>
  
  <pre><code>public interface IDataBase
  {
      DataTable GetSomeTableData();
  }
  </code></pre>
  
  <p>My class:</p>
  
  <pre><code>public class DataBase : IDataBase    
  {
      private readonly string _connectionString;
  
      public DataBase(string connectionString)
      {
          this._connectionString = connectionString;
      }
  
      public DataTable GetSomeTableData()
      {
          using (SqlConnection cn = new SqlConnection(_connectionString))
          {
               cn.Open();
               // some select
          }
      }
  }
  </code></pre>
  
  <p>I'm using Autofac to inject that class:</p>
  
  <pre><code>var builder = new ContainerBuilder();
  builder.RegisterType&lt;DataBase&gt;().As&lt;IDataBase&gt;).WithParameter("connectionString", "my connection string");
  var container = builder.Build();
  var database = container.Resolve&lt;IDataBase&gt;();
  var tableData1 = database.GetSomeTableData();
  // change connection string ?????????????????
  var tableData2 = database.GetSomeTableData();
  </code></pre>
  
  <p><strong>I need to get table data from one DB and another DB. How can I change connection string after have registered class? You may give another exapmle..</strong> </p>