title: Model First with DbContext, Fails to initialize new DataBase
body: <p>I give up.
  I found this:
  <a href="http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-model-amp-database-first-walkthrough.aspx">http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-model-amp-database-first-walkthrough.aspx</a>
  And thought, that's cool.
  So I quickly redesigned my model to take advantage of best of two worlds.</p>
  
  <p>But now my model fails at creating new database (or adding tabls to existing one).
  I get this error:</p>
  
  <blockquote>
    <p>Code generated using the T4 templates for Database First and Model First development may not work correctly if used in Code First mode. To continue using Database First or Model First ensure that the Entity Framework connection string is specified in the config file of executing application. To use these classes, that were generated from Database First or Model First, with Code First add any additional configuration using attributes or the DbModelBuilder API and then remove the code that throws this exception.</p>
  </blockquote>
  
  <p>At:</p>
  
  <pre><code>        protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          throw new UnintentionalCodeFirstException();
      }
  </code></pre>
  
  <p>And that's my connection string:</p>
  
  <pre><code>    &lt;add name="ForumContextContainer"
   providerName="System.Data.SqlClient"
   connectionString="Data Source=.\SQLExpress; Initial Catalog=iForum; Integrated Security=True"/&gt;
  </code></pre>
  
  <p>Note. I added Initial Catalog later, to try if it going to work, but It was exactly the same.</p>