Skip to content

Commit 3243757

Browse files
Use async methods in MiddlewareConfig.cs (ardalis#914)
Modified : src/Clean.Architecture.Web/Configurations/MiddlewareConfig.cs Co-authored-by: Steve Smith <[email protected]>
1 parent a7a98e4 commit 3243757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Clean.Architecture.Web/Configurations/MiddlewareConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ static async Task SeedDatabase(WebApplication app)
3636
try
3737
{
3838
var context = services.GetRequiredService<AppDbContext>();
39-
// context.Database.Migrate();
40-
context.Database.EnsureCreated();
39+
// await context.Database.MigrateAsync();
40+
await context.Database.EnsureCreatedAsync();
4141
await SeedData.InitializeAsync(context);
4242
}
4343
catch (Exception ex)

0 commit comments

Comments
 (0)