title: How to Add Migration in asp.net core 1.0
body: <p>i have create problem on creation of migration, migration is not created
  when i created Migration in Package in </p>
  
  <p><strong>DbInitializer</strong></p>
  
  <pre><code>public static class DbInitializer
  {
      public static void Initialize(SchoolContext context)
      {
          context.Database.EnsureCreated();
  
          // Look for any students.
          if (context.Students.Any())
          {
              return;   // DB has been seeded
          }
  
          var students = new Student[]
          {
          new Student{FirstMidName="Carson",LastName="Alexander",EnrollmentDate=DateTime.Parse("2005-09-01")},
          new Student{FirstMidName="Meredith",LastName="Alonso",EnrollmentDate=DateTime.Parse("2002-09-01")},
          new Student{FirstMidName="Arturo",LastName="Anand",EnrollmentDate=DateTime.Parse("2003-09-01")},
          new Student{FirstMidName="Gytis",LastName="Barzdukas",EnrollmentDate=DateTime.Parse("2002-09-01")},
          new Student{FirstMidName="Yan",LastName="Li",EnrollmentDate=DateTime.Parse("2002-09-01")},
          new Student{FirstMidName="Peggy",LastName="Justice",EnrollmentDate=DateTime.Parse("2001-09-01")},
          new Student{FirstMidName="Laura",LastName="Norman",EnrollmentDate=DateTime.Parse("2003-09-01")},
          new Student{FirstMidName="Nino",LastName="Olivetto",EnrollmentDate=DateTime.Parse("2005-09-01")}
          };
          foreach (Student s in students)
          {
              context.Students.Add(s);
          }
          context.SaveChanges();
  
      }
  }
  </code></pre>
  
  <p>MadeChanges in Startup.cs </p>
  
  <pre><code>app.UseMvc(routes =&gt;
  {
      routes.MapRoute(
          name: "default",
          template: "{controller=Home}/{action=Index}/{id?}");
  });
  DbInitializer.Initialize(conetxt);
  </code></pre>
  
  <blockquote>
    <p>Package manager consol > Add-Migration FirstMigration and After Completion Update-Database</p>
  </blockquote>
  
  <p>Problem occured in Update-Database Command</p>