title: using CodeFirst DropCreateDatabaseIfModelChanges
body: <p>I am using Code First entity framework. But i have a problem. Ex. I have a table, there are over 10000 lines. in this case i want to add a new field, or even a table, or new foreign key. But I get the error in this case.</p>
  
  <blockquote>
    <p>The model backing the 'Context' context has changed since the
    database was created. Consider using Code First Migrations to update
    the database</p>
  </blockquote>
  
  <p>My context like this:</p>
  
  <pre><code>static Context()
  {
      Database.SetInitializer&lt;Context&gt;(new DropCreateDatabaseIfModelChanges&lt;Context&gt;());
  }
  </code></pre>
  
  <p>How can I solve this problem?</p>