Skip to main content
net11.0

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/3551975be08744f0418857c5bed8ab1545c5dd47

Published
Sep 8, 2026
1mo ago
Total Downloads
144.0M
144,004,089

Install

dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore --version 11.0.0-rc.1.26425.128
ProductVersions
.NET
net11.0

README

About

Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore provides an ASP.NET Core middleware for EF Core error pages, allowing detection and diagnosis of errors with EF Core migrations.

Key Features

  • Captures and displays detailed error information from Entity Framework Core database operations
  • Helps developers diagnose and troubleshoot database-related issues in ASP.NET Core applications

How to Use

To use Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore

Configuration

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

Additional Documentation

For more information on using Entity Framework Core in ASP.NET Core applications, refer to the official documentation.

Feedback & Contributing

Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Changes from Previous Version

No structural changes between v11.0.0-preview.7.26381.103 and v11.0.0-rc.1.26425.128.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.