title: Entity Framework Inserting Initial Data On Rebuild
body: <p>I am using Entity Framework code-first with a MySQL data source.</p>
  
  <p>I've defined <code>ContactType.cs</code> as follows:</p>
  
  <pre><code>public class ContactType
  {
      [Key]
      public int ContactTypeId { get; set; }
  
      [Required, StringLength(30)]
      public string DisplayName { get; set; }
  }
  </code></pre>
  
  <p>My question is, after I rebuild the database, how can I have EF to insert (without SQL) some contact types into the database. Normally, the DB is rebuilt as a blank schema, but I'd like to add contact types like (Home,Mobile,Office,Fax).</p>