Working with Blazor to build modern web apps — open to collaboration!
Contact me
← Open Source Projects

Code Generator for Clean Architecture

Code Generator for Clean Architecture

A Visual Studio extension designed to help you rapidly scaffold complete Create, Read, Update, and Delete (CRUD) functionalities for projects adhering to the Clean Architecture pattern.

⚡️ This tool is specially designed for use with the CleanArchitectureWithBlazorServer template and automates the creation of application-layer code in a consistent and maintainable structure.

Youtube video X1b4hFLs4vo

What It Does

This extension dramatically speeds up backend development by automatically generating:

  • Application-layer commands (e.g., Create, Update, Delete, Import, AddEdit).
  • Validators for each command.
  • Data Transfer Objects (DTOs).
  • Query handlers (e.g., GetAll, Export, Pagination).
  • Domain event handlers (e.g., Created, Updated, Deleted).
  • All generated files are organized within a consistent folder and namespace structure, promoting maintainability.

How to Use

  1. Right-click on a target folder within your project in Visual Studio’s Solution Explorer.
  2. From the context menu, select “Add New Feature (Clean Architecture)” or use the shortcut Shift+F2.
  3. In the prompt that appears, enter the name of your entity (e.g., Product).
  4. The relevant files are then automatically generated based on the specified entity and domain context.

License

This project is licensed under the MIT License, a permissive open-source license. You are free to use, modify, and distribute the code for personal or commercial purposes, provided the original license and copyright notice are included.

Share this article

X Facebook Reddit

FROM BUSINESS GOALS TO WORKING SOFTWARE

Build what’s next.
Let’s start a conversation.

Bring your next application, enterprise integration or AI workflow into focus. Start with your business goals and shape a clear technical direction and a practical path to delivery.

Share your business context, current technology stack or an early idea.