ASP.NET Core middleware for Entity Framework Core error pages. Use this middleware to detect and diagnose errors with Entity Framework Core migrations. This package was built from the source code at https://github.com/dotnet/dotnet/tree/87bc0b04e21d786669142109a5128c95618b75ed
$ dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCoreMicrosoft.AspNetCore.Diagnostics.EntityFrameworkCore provides an ASP.NET Core middleware for EF Core error pages, allowing detection and diagnosis of errors with EF Core migrations.
To use Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore, follow these steps:
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
To use the middleware, add it to the ASP.NET Core pipeline defined in your app's Program.cs:
builder.Services.AddDatabaseDeveloperPageExceptionFilter();
var app = builder.build();
if (app.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
}
For more information on using Entity Framework Core in ASP.NET Core applications, refer to the official documentation.
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.