Skip to content

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

Notifications You must be signed in to change notification settings

franklintarter/asp-net-core-cqrs

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages