Sample .NET Core REST API CQRS implementation with raw SQL and DDD.
Simple .NET Core REST API application implemented with basic CQRS approach.
Read Model - executing raw SQL scripts on database views objects (using Dapper).
Write Model - Domain Driven Design approach (using Entity Framework Core).
Commands/Queries/Domain Events handling using MediatR library.
See blog post about this solution.
How to run
- Create empty database.
- Execute InitializeDatabase.sql script.
- Set connection string (in appsettings.json or by user secrets mechanism).
- Run!