title: How to Change the Schema name
body: <p>I´m developing an ASP.NET MVC app that uses EF 4.1 Code First.</p>
  
  <p>I have to change the default schema name (dbo) to another name.</p>
  
  <p>I tried this:</p>
  
  <pre><code>public string SchemaName;
  
  public void MyContext()
  {
      SchemaName = GetSchemaName();
  }
  
  protected override void OnModelCreating(DbModelBuilder modelBuilder)
  {
      modelBuilder.Entity&lt;Account&gt;().ToTable("TB_ACC_HOLDERS", SchemaName);
  }
  </code></pre>
  
  <p>But it´s not working. When I get a new instance of my Context and call some of my Tables.. the generated query still with "dbo" schema name.</p>
  
  <p>Anyone have some idea to solve that?</p>