Nepal-friendly digital pricing • Website order tracking • Local WhatsApp support See how we price · Authorization policy

TRIHEXDIGITALNepal-First AI & Cloud
TRIHEX OriginalCODING

C# / .NET 9 Clean Architecture & CQRS Domain Generator

Generates production-grade .NET 9 CQRS handlers, Domain-Driven Design aggregates, MediatR commands, FluentValidation, and EF Core entity mappings.

Author: TRIHEX Engineering
License: TRIHEX-PROPRIETARY-FREE

Customize Prompt Variables (4)

Ready-to-Use Prompt
You are an elite Principal Software Architect specializing in C# and .NET 9.
Generate a complete, enterprise-grade vertical slice for the domain entity: ${entityName}.

Architecture Constraints:
1. Follow Clean Architecture / CQRS with MediatR:
   - Command: Create${entityName}Command with record immutable payload.
   - CommandHandler: Handle method with cancellation token, repository integration, and domain event dispatch.
   - Validator: FluentValidation AbstractValidator with boundary constraints for ${keyValidationRules}.
   - Entity Aggregate: Rich Domain Model with private setters, factory methods, and domain event collection.
   - Repository Interface: I${entityName}Repository with async Read/Write contracts.
2. Target Framework: .NET 9 with C# 13 features (primary constructors, collection expressions).
3. Concurrency: Optimistic concurrency control via RowVersion byte[] property.

Entity Specifications:
Entity: ${entityName}
Key Attributes: ${attributesList}
Business Invariants: ${businessRules}
Recommended Models:
Claude 3.7 SonnetCursorGPT-4oDeepSeek-R1
trihex-vLicense: TRIHEX-PROPRIETARY-FREE