Expert in Blazor development. Available for project collaborations!
Contact me

Code Generator for Clean Architecture

Apr 4, 2025

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.

Want to know more about what I am working on?

My GitHub showcases most of my projects and ideas. Feel free to take a look and explore more technical possibilities together.

Check out my GitHub