We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b629a85 commit a1c7631Copy full SHA for a1c7631
backend/src/Program.cs
@@ -55,9 +55,8 @@ string[] commandLineArguments
55
startup.Configure(application);
56
using (var scope = application.Services.CreateScope())
57
{
58
- if (application.Environment.IsDevelopment())
59
- // https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro#initialize-db-with-test-data
60
- await CreateAndSeedDb(scope.ServiceProvider).ConfigureAwait(false);
+ // Inspired by https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro#initialize-db-with-test-data
+ await CreateAndSeedDb(scope.ServiceProvider).ConfigureAwait(false);
61
}
62
63
application.Run();
0 commit comments