EfUi.AspNetCore 0.0.1

dotnet add package EfUi.AspNetCore --version 0.0.1
                    
NuGet\Install-Package EfUi.AspNetCore -Version 0.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EfUi.AspNetCore" Version="0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EfUi.AspNetCore" Version="0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="EfUi.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EfUi.AspNetCore --version 0.0.1
                    
#r "nuget: EfUi.AspNetCore, 0.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EfUi.AspNetCore@0.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EfUi.AspNetCore&version=0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=EfUi.AspNetCore&version=0.0.1
                    
Install as a Cake Tool

EfUi.AspNetCore

EfUi.AspNetCore is the NuGet package that adds EF UI to an ASP.NET Core application.

What this package covers

  • .NET 8+
  • Entity Framework Core 8.x
  • any EF Core database provider
  • ASP.NET Core apps that can register a DbContext in dependency injection

The package is provider-agnostic. The sample host in this repository uses SQLite, but that is only one example.

Install

dotnet add package EfUi.AspNetCore

Use

using EfUi.AspNetCore;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddDbContext<MyDbContext>(...);
builder.Services.AddAuthorization();

var app = builder.Build();

app.UseEfUi(options =>
{
    options.DbContextType = typeof(MyDbContext);
    options.RoutePrefix = "/admin";
    options.EnableInProduction = true;
    options.RequireAuthorization = true;
});

app.Run();

Options to know

  • DbContextType: the EF Core DbContext type registered in DI
  • RoutePrefix: the URL path where the UI is mounted
  • EnableInProduction: keep the UI disabled in production unless you explicitly opt in
  • RequireAuthorization: require authenticated users and role checks
  • ReadOnlyRoleName / EditRoleName: override the default role names if your app uses different ones

Notes

  • The package exposes the UseEfUi ASP.NET Core extension method.
  • When authorization is enabled, browsing routes accept ReadOnly or Edit, while create/update/delete routes require Edit.
  • The package is intended for server-rendered admin-style EF Core browsing and editing.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.1 96 5/22/2026
0.0.1-preview 90 5/22/2026