DBAdminPanel 0.0.2-alpha
See the version list below for details.
dotnet add package DBAdminPanel --version 0.0.2-alpha
NuGet\Install-Package DBAdminPanel -Version 0.0.2-alpha
<PackageReference Include="DBAdminPanel" Version="0.0.2-alpha" />
<PackageVersion Include="DBAdminPanel" Version="0.0.2-alpha" />
<PackageReference Include="DBAdminPanel" />
paket add DBAdminPanel --version 0.0.2-alpha
#r "nuget: DBAdminPanel, 0.0.2-alpha"
#:package DBAdminPanel@0.0.2-alpha
#addin nuget:?package=DBAdminPanel&version=0.0.2-alpha&prerelease
#tool nuget:?package=DBAdminPanel&version=0.0.2-alpha&prerelease
DBAdminPanel
<div align="center"> <img src="src/DBAdminPanel/dbadminpanel-ui/src/assets/icons/dotnet-package-icon.svg" alt="DBAdminPanel Logo" width="128" height="128">
A .NET source generator that automatically creates a complete MVC admin panel for Entity Framework Core models. </div>
Features
- Automatic CRUD Generation: Generates full Create, Read, Update, Delete operations for all entities
- MVC Controllers: Automatically generates controllers with all CRUD endpoints
- Dashboard: Provides a central dashboard to access all entity management pages
- Route Configuration: All admin panel routes are prefixed with
/DBAdminPanel
Installation
dotnet add package DBAdminPanel
Usage
1. Add the Package
Add the DBAdminPanel NuGet package to your project that contains your DbContext.
2. Configure Services
In your Program.cs or Startup.cs, add the DBAdminPanel services:
using DBAdminPanel;
var builder = WebApplication.CreateBuilder(args);
// Add your DbContext
builder.Services.AddDbContext<YourDbContext>(options =>
options.UseSqlServer(connectionString));
// Add DBAdminPanel
builder.Services.AddDBAdminPanel();
var app = builder.Build();
// Use DBAdminPanel (optional, for additional middleware configuration)
app.UseDBAdminPanel();
app.Run();
3. Access the Admin Panel
Once configured, navigate to /DBAdminPanel to access the dashboard, which lists all entities in your DbContext.
Individual entity management pages are available at:
/DBAdminPanel/{EntityName}- List all entities/DBAdminPanel/{EntityName}/Create- Create new entity/DBAdminPanel/{EntityName}/Edit/{id}- Edit entity/DBAdminPanel/{EntityName}/Details/{id}- View entity details/DBAdminPanel/{EntityName}/Delete/{id}- Delete entity
How It Works
The source generator:
- Scans your project for classes that inherit from
DbContext - Identifies all
DbSet<T>properties - Generates MVC controllers for each entity with full CRUD operations
- Generates a dashboard controller
- Provides service registration extensions
Requirements
- .NET 6.0 or later
- Entity Framework Core
- ASP.NET Core MVC
Notes
- The source generator automatically detects entities from your
DbContext - Key properties are automatically detected (properties named "Id" or "{EntityName}Id", or properties with
[Key]attribute) - All generated code is placed in the
DBAdminPanel.Generatednamespace
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 10.0.0)
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.3-alpha | 61 | 1/8/2026 |
| 0.0.2-alpha | 57 | 1/8/2026 |
| 0.0.1-alpha | 60 | 1/8/2026 |