| .. | ||
| 01-solution-structure.md | ||
| 02-domain-layer.md | ||
| 03-cqrs-layer.md | ||
| 04-dal-layer.md | ||
| 05-api-layer.md | ||
| 06-testing-strategy.md | ||
| README.md | ||
Modular Solution Tutorial
Build a properly structured .NET solution with separated concerns.
Overview
This tutorial walks through creating a modular solution with proper layer separation:
- Api Layer - HTTP/gRPC endpoints
- CQRS Layer - Commands, queries, handlers
- Domain Layer - Entities, value objects, domain events
- Infrastructure Layer - Data access, external services
Prerequisites
- .NET 10 SDK
- Basic C# knowledge
- Understanding of CQRS pattern
Tutorial Steps
- Solution Structure - Create project structure
- Domain Layer - Define entities and events
- CQRS Layer - Implement commands and queries
- DAL Layer - Set up Entity Framework Core
- API Layer - Configure HTTP/gRPC endpoints
- Testing Strategy - Unit and integration tests
Final Structure
OrderManagement.sln
├── OrderManagement.Api/
├── OrderManagement.CQRS/
├── OrderManagement.Domain/
├── OrderManagement.Infrastructure/
└── OrderManagement.Tests/