Skip to content
A demo app to show an example of patterns and tools to do CQRS in Asp.Net Core
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AspNetCore.CQRS.Data.IntegrationTest
AspNetCore.CQRS.Data
AspNetCore.CQRS.Domain.Test
AspNetCore.CQRS.Domain
AspNetCore.CQRS.SharedKernel
.gitignore
AspNetCore.CQRS.Data.sln
README.md

README.md

asp-net-core-cqrs

A demo app to show an opinionated example of patterns and tools to do CQRS and Domain Driven Design in Asp.Net Core.

Since this is a very simple demo the level of complexity definitely looks like using a bazooka to kill a fly. The purpose is to attempt to use patterns and practices to solve some problems that will eventually grow out of hand in a truly complex app.

  • Avoid Duplicate Validation Logic
  • Avoid Anemic Domain Models
  • Avoid Null Reference Exceptions
  • Ensure Domain Objects Always Exist in a Valid State
  • Fail Early and Loudly
  • Easy To Test Domain Logic in Isolation

Libraries Used

Entity Framework Core

Fluent Validations

CSharp Functional Extensions

MediatR

Contributions

Please feel free to make suggestions or start a discussion about anything related to DDD or CQRS in .Net Core/Asp.Net Core, what are some other good librarys or other patterns that mesh well with CQRS? etc..

TODO

  • Create View Model
  • Create Web App Example
You can’t perform that action at this time.