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())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseMigrationsEndPoint();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ namespace IdentitySample.DefaultUI
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseMigrationsEndPoint();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ namespace IdentitySample
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseMigrationsEndPoint();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ namespace Identity.DefaultUI.WebSite
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseMigrationsEndPoint();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ namespace Identity.DefaultUI.WebSite
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseMigrationsEndPoint();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ namespace Identity.DefaultUI.WebSite
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseMigrationsEndPoint();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -125,6 +125,8 @@ namespace MusicStore
|
|||
// During development use the ErrorPage middleware to display error information in the browser
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
||||
app.UseMigrationsEndPoint();
|
||||
|
||||
// Configure Session.
|
||||
app.UseSession();
|
||||
|
||||
|
|
|
|||
|
|
@ -161,6 +161,8 @@ namespace MusicStore
|
|||
// Note: Not recommended for production.
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
||||
app.UseMigrationsEndPoint();
|
||||
|
||||
// Configure Session.
|
||||
app.UseSession();
|
||||
|
||||
|
|
|
|||
|
|
@ -134,6 +134,8 @@ namespace MusicStore
|
|||
// During development use the ErrorPage middleware to display error information in the browser
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
||||
app.UseMigrationsEndPoint();
|
||||
|
||||
Configure(app);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -117,6 +117,8 @@ namespace MusicStore
|
|||
// Note: Not recommended for production.
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
||||
app.UseMigrationsEndPoint();
|
||||
|
||||
app.Use((context, next) =>
|
||||
{
|
||||
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
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
||||
app.UseMigrationsEndPoint();
|
||||
|
||||
// Configure Session.
|
||||
app.UseSession();
|
||||
|
||||
|
|
|
|||
|
|
@ -136,6 +136,9 @@ namespace BlazorServerWeb_CSharp
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
#if (IndividualLocalAuth)
|
||||
app.UseMigrationsEndPoint();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -99,6 +99,9 @@ namespace ComponentsWebAssembly_CSharp.Server
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
#if (IndividualLocalAuth)
|
||||
app.UseMigrationsEndPoint();
|
||||
#endif
|
||||
app.UseWebAssemblyDebugging();
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -119,6 +119,9 @@ namespace Company.WebApplication1
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
#if (IndividualLocalAuth)
|
||||
app.UseMigrationsEndPoint();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -120,6 +120,9 @@ namespace Company.WebApplication1
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
#if (IndividualLocalAuth)
|
||||
app.UseMigrationsEndPoint();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ namespace Identity.ExternalClaims
|
|||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseMigrationsEndPoint();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue