Skip to content

A framework to implement Domain Driven Design applications

Notifications You must be signed in to change notification settings

Thepexorcist/DDDFramework.Solution

Repository files navigation

DDDFramework

DDDFramework is an application framework for C# applications built with DDD

Features

This solution provides a framework for building DDD applications. Includes building blocks for implementing aggregates, entities, value objects, repositories and domain events. The framework also includes the support for handling multi-tenancy and support for eventual consistency using the Outbox pattern.

Example

The framework includes an example using all parts of the building blocks. Multi-tenancy and the eventual consistency between two bounded contexts. The example uses an in memory event bus. This won't work as an event bus if both contexts runs in seperate processes.

This example uses a Blazor application that will set up both contexts and running them in one process instead of two. Both contexts can be setup as running in seperate processes but then another implementation of the event bus must be present.

Example features

  • Aggregates, Multi tenant aggregates
  • Entities
  • Value objects
  • Domain services
  • Domain Events
  • Repositories, Multi tenant repositories
  • Domain event handling (within same bounded context)
  • Domain notification handling (external communication outside bounded context using eventual consistency)
  • Integration event handling

How to run sample

Before running the sample you need to publish the databases. These can be found under /FirstContext/Database and /SecondContext/Database. Right click these and select publish and point out the database server where you want to publish these.

After this is done the appsettings.json/appsettings.Development.json needs to be updated with connection string to the databases.

Run SampleApplication.Web

About

A framework to implement Domain Driven Design applications

Topics

Resources

Stars

Watchers

Forks

Languages