CrudBuster 1.1.0

dotnet add package CrudBuster --version 1.1.0
                    
NuGet\Install-Package CrudBuster -Version 1.1.0
                    
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="CrudBuster" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CrudBuster" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="CrudBuster" />
                    
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 CrudBuster --version 1.1.0
                    
#r "nuget: CrudBuster, 1.1.0"
                    
#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 CrudBuster@1.1.0
                    
#: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=CrudBuster&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=CrudBuster&version=1.1.0
                    
Install as a Cake Tool

CrudBuster

An automatic CRUD endpoint generator for ASP.NET Core Minimal APIs that scans your project's entities and automatically generates corresponding CRUD (Create, Read, Update, Delete) service endpoints based on those entities, streamlining API development and reducing boilerplate code."

CrudBuster, allows you to quickly and flexibly generate CRUD (Create, Read, Update, Delete) endpoints in your ASP.NET Core applications. You can define your endpoints without relying on any interface by integrating your own service classes through delegates.

Features

  • Automatic CRUD Endpoint Generation: Create GET, POST, PUT, and DELETE endpoints with a single method.
  • Flexible Service Integration: Works with any service class thanks to its delegate-based structure.
  • Authorization Support: You can add custom authorization policies to your endpoints.
  • Minimal API Support: Optimized for .NET 6 and later.
  • Release: Currently in development — we welcome your feedback!

Installation

Add the NuGet package to your project:

Feedback

Thank you for testing our beta version! You can share your issues or suggestions via GitHub Issues.

Changelog

[1.1.0] - 2025-08-07

🎉 First stable release

This version marks the first stable release of CrudBuster, following several beta versions and improvements. It includes all core features to simplify CRUD endpoint generation in ASP.NET Core Minimal APIs:

Highlights:

✅ Automatic CRUD endpoint generation via delegates

✅ Minimal API support (.NET 6+)

✅ Flexible service integration

✅ ViewModel auto-generation

✅ Authorization support

✅ Layered architecture configuration

✅ Modular and extensible core

We believe this release provides a solid foundation for production use. We welcome your feedback for future improvements!

[1.0.9] - 2025-07-29

Added

  • The error in the PropertyType.Name value has been resolved.
  • Critical bug fixed

[1.0.8] - 2025-07-28

Added

  • Delegate-based architecture was employed for CRUD services, enabling dynamic method binding and enhancing execution efficiency.
  • Core infrastructure has been refactored to support modularity and performance.

[1.0.7] - 2025-07-28

  • The view model folder structure is created based on the dynamic entity name.
  • Performance improvements have been made.
  • If any of the view models (CreateViewModel, UpdateViewModel, DeleteViewModel, GetViewModel, GetListViewModel) are missing, the system will automatically generate the missing ones. If the entity has no view models at all, it will generate all of them.
  • Critical bug fixed

Usage

app.CrudBuster(opt => opt
    //!!! It must be the same as the method name in the repository.
    .WithGetByIdService("GetAsync")

    //!!! It must be the same as the method name in the repository.
    .WithGetListService("GetListAsync")

    //!!! It must be the same as the method name in the repository.
    .WithCreateService("CreateAsync")

    //!!! It must be the same as the method name in the repository.
    .WithUpdateService("UpdateAsync")

    //!!! It must be the same as the method name in the repository.
    .WithDeleteService("DeleteAsync")
    
    //It searches for entities in this layer.
    .WithDomainLayer("DOmain")
    
    //It searches for view models in this layer.
    .WithViewModelLayer("Application")
    
    //It searches for repo in this layer.
    .WithRepositoryLayer("Infrastructure")
    
    //In this field, you must assign the last part of the name you used in your view model classes. For example: ProductCreate*ViewModel*, ProductCreate*VM*, ProductCreate*DTO*, or whatever naming convention you follow.
    .WithViewModelPattern("VM")

    //You must provide your own view model path."
    .WithViewModelOutput(Directory.GetCurrentDirectory()+"/ViewModels")
    
    // !!!The database tables must have the same name as the base entity class they inherit from.
    .WithBaseEntityName("IBaseEntity")
    
    //If required authenticate
    .WithIsAuthenticateRequired(false)

     //This field specifies which permissions can access the controller. You can set it to null
    .WithAuthorizationPolicy("Admin, User, SuperAdmin")

    //!!! It has to be the same as the name of the repository.".
    .WithRepositoryName("IRepository"));

Binance

  • BTC: 13mzeg11nGAHwx5WtHye5dpNTQxbsb1T2v

  • ETH: 0xadcdb8c83207821f86e9ff683cc74fa45e48ca30

  • SOL: EdQCWcWmvsEJq9PxnVegviJipcExZUUgEz2ZZTBbhQVa

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.

CRUD endpoint generation for ASP.NET Core minimal APIs.