Add MigrationsEndPoint when DatabaseDeveloperPageExceptionFilter is used (#25554)
This commit is contained in:
parent
20af9b88bb
commit
c902645115
|
|
@ -50,6 +50,7 @@ namespace ApiAuthSample
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ namespace IdentitySample.DefaultUI
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ namespace IdentitySample
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ namespace Identity.DefaultUI.WebSite
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ namespace Identity.DefaultUI.WebSite
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ namespace Identity.DefaultUI.WebSite
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,8 @@ namespace MusicStore
|
||||||
// During development use the ErrorPage middleware to display error information in the browser
|
// During development use the ErrorPage middleware to display error information in the browser
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
|
||||||
// Configure Session.
|
// Configure Session.
|
||||||
app.UseSession();
|
app.UseSession();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -161,6 +161,8 @@ namespace MusicStore
|
||||||
// Note: Not recommended for production.
|
// Note: Not recommended for production.
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
|
||||||
// Configure Session.
|
// Configure Session.
|
||||||
app.UseSession();
|
app.UseSession();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,8 @@ namespace MusicStore
|
||||||
// During development use the ErrorPage middleware to display error information in the browser
|
// During development use the ErrorPage middleware to display error information in the browser
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
|
||||||
Configure(app);
|
Configure(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,8 @@ namespace MusicStore
|
||||||
// Note: Not recommended for production.
|
// Note: Not recommended for production.
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
|
||||||
app.Use((context, next) =>
|
app.Use((context, next) =>
|
||||||
{
|
{
|
||||||
context.Response.Headers["Arch"] = RuntimeInformation.ProcessArchitecture.ToString();
|
context.Response.Headers["Arch"] = RuntimeInformation.ProcessArchitecture.ToString();
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,8 @@ namespace MusicStore
|
||||||
// During development use the ErrorPage middleware to display error information in the browser
|
// During development use the ErrorPage middleware to display error information in the browser
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
|
||||||
// Configure Session.
|
// Configure Session.
|
||||||
app.UseSession();
|
app.UseSession();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,9 @@ namespace BlazorServerWeb_CSharp
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
#if (IndividualLocalAuth)
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,9 @@ namespace ComponentsWebAssembly_CSharp.Server
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
#if (IndividualLocalAuth)
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
#endif
|
||||||
app.UseWebAssemblyDebugging();
|
app.UseWebAssemblyDebugging();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,9 @@ namespace Company.WebApplication1
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
#if (IndividualLocalAuth)
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -120,6 +120,9 @@ namespace Company.WebApplication1
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
#if (IndividualLocalAuth)
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,9 @@ namespace Company.WebApplication1
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
#if (IndividualLocalAuth)
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,9 @@ namespace Company.WebApplication1
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
#if (IndividualLocalAuth)
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,7 @@ namespace Identity.ExternalClaims
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
app.UseMigrationsEndPoint();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue