Add MigrationsEndPoint when DatabaseDeveloperPageExceptionFilter is used (#25554)

This commit is contained in:
John Luo 2020-09-04 15:46:14 -07:00 committed by GitHub
parent 20af9b88bb
commit c902645115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 35 additions and 0 deletions

View File

@ -50,6 +50,7 @@ namespace ApiAuthSample
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
}
else
{

View File

@ -60,6 +60,7 @@ namespace IdentitySample.DefaultUI
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
}
else
{

View File

@ -63,6 +63,7 @@ namespace IdentitySample
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
}
else
{

View File

@ -49,6 +49,7 @@ namespace Identity.DefaultUI.WebSite
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
}
else
{

View File

@ -65,6 +65,7 @@ namespace Identity.DefaultUI.WebSite
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
}
else
{

View File

@ -34,6 +34,7 @@ namespace Identity.DefaultUI.WebSite
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
}
else
{

View File

@ -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();

View File

@ -161,6 +161,8 @@ namespace MusicStore
// Note: Not recommended for production.
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
// Configure Session.
app.UseSession();

View File

@ -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);
}

View File

@ -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();

View File

@ -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();

View File

@ -136,6 +136,9 @@ namespace BlazorServerWeb_CSharp
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
#if (IndividualLocalAuth)
app.UseMigrationsEndPoint();
#endif
}
else
{

View File

@ -99,6 +99,9 @@ namespace ComponentsWebAssembly_CSharp.Server
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
#if (IndividualLocalAuth)
app.UseMigrationsEndPoint();
#endif
app.UseWebAssemblyDebugging();
}
else

View File

@ -119,6 +119,9 @@ namespace Company.WebApplication1
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
#if (IndividualLocalAuth)
app.UseMigrationsEndPoint();
#endif
}
else
{

View File

@ -120,6 +120,9 @@ namespace Company.WebApplication1
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
#if (IndividualLocalAuth)
app.UseMigrationsEndPoint();
#endif
}
else
{

View File

@ -72,6 +72,9 @@ namespace Company.WebApplication1
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
#if (IndividualLocalAuth)
app.UseMigrationsEndPoint();
#endif
}
else
{

View File

@ -74,6 +74,9 @@ namespace Company.WebApplication1
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
#if (IndividualLocalAuth)
app.UseMigrationsEndPoint();
#endif
}
else
{

View File

@ -74,6 +74,7 @@ namespace Identity.ExternalClaims
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
}
else
{