netMazy / sample-dotnet-core-cqrs-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Create empty database.
  2. Execute InitializeDatabase.sql script.
  3. Set connection string (in appsettings.json or by user secrets mechanism).
  4. Run!

About


Languages

Language:C# 100.0%