title: Entity Framework Code First: Initializing a Database using Console Application
body: <p>I'm trying to run initialization code and it is not running. Here's what I have in the main method</p>
  
  <pre><code>    static void Main(string[] args)
      {
          Database.SetInitializer&lt;Context&gt;(new RecipesSeedData());
  
      }
  </code></pre>
  
  <p>Am I supposed to put something else in main to get it to run the below code
  ? When I step through the code in the debugger it's not even getting to the initialization code which makes me feel like I'm missing something important. </p>
  
  <pre><code>public class RecipesSeedData : DropCreateDatabaseAlways&lt;Context&gt;
  {
      protected override void Seed(Context context)
      {
          var mt = new MenuType {MenuTypeId = 1};
  
          context.MenuTypes.Add(mt);
  
          base.Seed(context);
      }
  }
  </code></pre>