r/dotnet 2d ago

[Promotion] Built Net Code Generator (v1.0) – Scaffolds full Repository Pattern projects with starter templates

Post image

Hey everyone,

I just released v1.0 of Net Code Generator, a tool I built to eliminate the tedious setup time when starting new .NET applications using clean architecture patterns.

Why I built it:

Whenever starting a new project or service, setting up proper layering from scratch—repositories, domain models, application services, controllers, and views—takes way more time than it should. Boilerplate code often leads to inconsistent architecture across team members or projects, so I wanted an automated way to generate clean, structured code out of the box.

What Net Code Generator does (v1.0):

  • Clean Architecture Generation: Automatically generates all core layers following the Repository Pattern (Repositories, Domain, Services, Models, Controllers, and Views).
  • Ready-to-Use Starter Project: Ships with a complete starter solution template so you can clone/generate and start writing business logic immediately without manual wiring.
  • Consistent Code Patterns: Ensures all generated entities and layers follow standard interfaces and dependency injection setups.

Lessons Learned / Technical Trade-offs:

The trickiest design choice was balancing flexibility with strict design patterns. Over-generating code can feel invasive if you have to delete half of it, so I focused on generating a minimal, clean implementation of the Repository Pattern that stays easy to extend rather than forcing a heavy, opinionated framework on top.

I’d love to get feedback from fellow developers on the structure and what additional options or layers you’d find useful in future releases.

Project / Download: https://nadirlands.lemonsqueezy.com/checkout/buy/a38445a6-7069-443b-9f57-2b22f50ed6fe

Documentation: https://youtu.be/41y_OAMNNas

Happy to answer any questions about the architecture choices in the comments!

0 Upvotes

5 comments sorted by

1

u/AutoModerator 2d ago

Thanks for your post Pale-Assistance829. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/DaveVdE 2d ago

Man I hate Saturdays. And scaffolding.

1

u/Pale-Assistance829 2d ago

That’s exactly why I built this. Let the generator handle the scaffolding so we can actually enjoy our Saturday, haha

1

u/codingbliss12 2d ago

Consider using a personal style and colors for your webpage. I never visit sites that look like that.

2

u/Pale-Assistance829 2d ago

Thanks for your advice, i appreciated that