Add MigrationsEndPoint when DatabaseDeveloperPageExceptionFilter is used (dotnet/aspnetcore#25554)
Commit migrated from dotnet/aspnetcore@c902645115
This commit is contained in:
Родитель
e5f42b404e
Коммит
b79b20c140
|
@ -72,6 +72,9 @@ namespace Company.WebApplication1
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
#if (IndividualLocalAuth)
|
||||
app.UseMigrationsEndPoint();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -74,6 +74,9 @@ namespace Company.WebApplication1
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
#if (IndividualLocalAuth)
|
||||
app.UseMigrationsEndPoint();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче