net9.0
namespace Microsoft.AspNetCore.Builder
{
    [Obsolete("This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.")]
    public static class DatabaseErrorPageExtensions
    {
        [Obsolete("This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.")]
        [RequiresDynamicCode("DbContext migrations operations are not supported with NativeAOT")]
        public static IApplicationBuilder! UseDatabaseErrorPage(this IApplicationBuilder! app, DatabaseErrorPageOptions! options);
    }
}
.NET 9.0
.NET Core 2.02.12.2
Information specific to net9.0
Assemblies

Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore , Version=9.0.0.0, PublicKeyToken=adb9793829ddae60

Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore , Version=10.0.0.0, PublicKeyToken=adb9793829ddae60

Referencing

Your project needs a package reference to Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.

Package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (9.0.0) net9.0
Obsolete This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API

11/13/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙