DatabaseErrorPageExtensions.UseDatabaseErrorPage DatabaseErrorPageExtensions.UseDatabaseErrorPage DatabaseErrorPageExtensions.UseDatabaseErrorPage Method

Definition

Overloads

UseDatabaseErrorPage(IApplicationBuilder) UseDatabaseErrorPage(IApplicationBuilder) UseDatabaseErrorPage(IApplicationBuilder)

Captures synchronous and asynchronous database related exceptions from the pipeline that may be resolved using Entity Framework migrations. When these exceptions occur an HTML response with details of possible actions to resolve the issue is generated.

UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions) UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions) UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions)

Captures synchronous and asynchronous database related exceptions from the pipeline that may be resolved using Entity Framework migrations. When these exceptions occur an HTML response with details of possible actions to resolve the issue is generated.

UseDatabaseErrorPage(IApplicationBuilder) UseDatabaseErrorPage(IApplicationBuilder) UseDatabaseErrorPage(IApplicationBuilder)

Captures synchronous and asynchronous database related exceptions from the pipeline that may be resolved using Entity Framework migrations. When these exceptions occur an HTML response with details of possible actions to resolve the issue is generated.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDatabaseErrorPage (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseDatabaseErrorPage : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDatabaseErrorPage (app As IApplicationBuilder) As IApplicationBuilder

Parameters

Returns

The same IApplicationBuilder instance so that multiple calls can be chained.

UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions) UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions) UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions)

Captures synchronous and asynchronous database related exceptions from the pipeline that may be resolved using Entity Framework migrations. When these exceptions occur an HTML response with details of possible actions to resolve the issue is generated.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDatabaseErrorPage (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DatabaseErrorPageOptions options);
static member UseDatabaseErrorPage : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.DatabaseErrorPageOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDatabaseErrorPage (app As IApplicationBuilder, options As DatabaseErrorPageOptions) As IApplicationBuilder

Parameters

Returns

The same IApplicationBuilder instance so that multiple calls can be chained.

Applies to