Update Async To MigrationsEndPointMiddleware (#22573)

This commit is contained in:
Huei Feng 2020-06-16 05:42:55 +08:00 committed by GitHub
parent ef0eff7089
commit 7cdbaeeccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
{
_logger.ApplyingMigrations(db.GetType().FullName);
db.Database.Migrate();
await db.Database.MigrateAsync();
context.Response.StatusCode = (int)HttpStatusCode.NoContent;
context.Response.Headers.Add("Pragma", new[] { "no-cache" });