Update Async To MigrationsEndPointMiddleware (#22573)
This commit is contained in:
parent
ef0eff7089
commit
7cdbaeeccf
|
|
@ -76,7 +76,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
|
||||||
{
|
{
|
||||||
_logger.ApplyingMigrations(db.GetType().FullName);
|
_logger.ApplyingMigrations(db.GetType().FullName);
|
||||||
|
|
||||||
db.Database.Migrate();
|
await db.Database.MigrateAsync();
|
||||||
|
|
||||||
context.Response.StatusCode = (int)HttpStatusCode.NoContent;
|
context.Response.StatusCode = (int)HttpStatusCode.NoContent;
|
||||||
context.Response.Headers.Add("Pragma", new[] { "no-cache" });
|
context.Response.Headers.Add("Pragma", new[] { "no-cache" });
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue