Esempio n. 1
0
 public void Configure(IServiceProvider provider)
 {
     // per 'Pattern for seeding database with EF7 in ASP.NET 5':
     // https://github.com/aspnet/EntityFramework/issues/3070
     provider.EnsureMigrationsApplied();
     provider.EnsureSampleData();
 }