Bounded Contexts

Settings for scaffolding out a bounded context for within your domain project.

Bounded Contexts

A bounded context is a logical contextual boundary within your domain, in the same vein that it is used in Domain Driven Design (DDD). For example, in a clinical domain, I might have front desk, billing, laboratory, and reporting contexts.

Bounded Contexts Properties

NameRequiredDescriptionDefault
SolutionNameYesA simple string that will become the name of your solution within a bounded context.None
DbContextYesThe db context setup for this project.None
EntitiesYesA list of entities to create database endpoints.None
SwaggerConfigNoThe swagger configuration for this API.None
EnvironmentsNoThe environments that get scaffolded out in this project.None
AuthorizationSettingsNoThe authorization settings assigned to this project.None
ProducersNoThe MassTransit producers in your project.None
ConsumersNoThe MassTransit consumers in your project.None
BusNoThe MassTransit message bus in your project. When used in this context, the environment properties should be set in the Environment property of the bounded context.None
PortNoThe port that will be used on localhost for this project.5000

Note that the SolutionName should NOT be the same as an entity name or it will cause namespace issues.

Bounded Context Example

The example on the project tutorial covers how to add new bounded contexts.