CrudBuster 1.0.10-beta1
dotnet add package CrudBuster --version 1.0.10-beta1
NuGet\Install-Package CrudBuster -Version 1.0.10-beta1
<PackageReference Include="CrudBuster" Version="1.0.10-beta1" />
<PackageVersion Include="CrudBuster" Version="1.0.10-beta1" />
<PackageReference Include="CrudBuster" />
paket add CrudBuster --version 1.0.10-beta1
#r "nuget: CrudBuster, 1.0.10-beta1"
#:package CrudBuster@1.0.10-beta1
#addin nuget:?package=CrudBuster&version=1.0.10-beta1&prerelease
#tool nuget:?package=CrudBuster&version=1.0.10-beta1&prerelease
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.
- Beta Release: Currently in beta — 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.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"));
Donate
Binance
BTC: 13mzeg11nGAHwx5WtHye5dpNTQxbsb1T2v
ETH: 0xadcdb8c83207821f86e9ff683cc74fa45e48ca30
SOL: EdQCWcWmvsEJq9PxnVegviJipcExZUUgEz2ZZTBbhQVa
Product | Versions 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. |
-
net8.0
- Microsoft.CodeAnalysis.CSharp (>= 4.14.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
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 | |
---|---|---|---|
1.0.10-beta1 | 12 | 7/30/2025 | |
1.0.9-beta1 | 13 | 7/29/2025 | |
1.0.8-beta1 | 11 | 7/28/2025 | |
1.0.7-beta1 | 14 | 7/28/2025 | |
1.0.6-beta1 | 17 | 7/27/2025 | |
1.0.5-beta1 | 11 | 7/27/2025 | |
1.0.4-beta1 | 8 | 7/27/2025 | |
1.0.3-beta1 | 19 | 7/27/2025 | |
1.0.2-beta1 | 113 | 7/26/2025 | |
1.0.1-beta1 | 111 | 7/26/2025 | |
1.0.0-beta1 | 114 | 7/26/2025 |
Beta release with basic CRUD endpoint generation for ASP.NET Core minimal APIs.