Bounded Contexts Template

The template for the file used when creating a new bounded context to your domain project using the `add:bc` command.

Bounded Context Template Properties

NameRequiredDescriptionDefault
BoundedContextsNoA list of the bounded contexts in your projects. These are the logical contextual boundaries within your domain.None

Add Bounded Contexts Example

The add bounded context template is the same as the bounded contexts when creating a new domain; it just doesn't need the domain info, that already exists.

BoundedContexts:
  - ProjectName: FrontDesk
    Port: 1200
    DbContext:
      ContextName: FrontDeskDbContext
      DatabaseName: FrontDeskDbContext
      Provider: Postgres
    Entities:
      - Name: Patient
        Properties:
          - Name: FirstName
            Type: string
            CanFilter: true
            CanSort: true
          - Name: LastName
            Type: string
            CanFilter: true
            CanSort: true
  - ProjectName: Billing
    Port: 2010
    DbContext:
      ContextName: BillingDbContext
      DatabaseName: BillingDbContext
      Provider: Postgres
    Entities:
      - Name: Invoice
        Properties:
          - Name: Vendor
            Type: string
            CanFilter: true
            CanSort: true
          - Name: Amount
            Type: int
            CanFilter: true
            CanSort: true