DBAdminPanel 0.0.2-alpha

This is a prerelease version of DBAdminPanel.
There is a newer prerelease version of this package available.
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
                    
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="DBAdminPanel" Version="0.0.2-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DBAdminPanel" Version="0.0.2-alpha" />
                    
Directory.Packages.props
<PackageReference Include="DBAdminPanel" />
                    
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 DBAdminPanel --version 0.0.2-alpha
                    
#r "nuget: DBAdminPanel, 0.0.2-alpha"
                    
#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 DBAdminPanel@0.0.2-alpha
                    
#: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=DBAdminPanel&version=0.0.2-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DBAdminPanel&version=0.0.2-alpha&prerelease
                    
Install as a Cake Tool

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:

  1. Scans your project for classes that inherit from DbContext
  2. Identifies all DbSet<T> properties
  3. Generates MVC controllers for each entity with full CRUD operations
  4. Generates a dashboard controller
  5. 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.Generated namespace
Product 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. 
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.3-alpha 61 1/8/2026
0.0.2-alpha 57 1/8/2026
0.0.1-alpha 60 1/8/2026