Table of Contents

How-To Guides

Task-oriented guides for accomplishing specific goals with JD.Domain. Each guide focuses on a single task with clear steps and working code examples.

Domain Modeling

Learn how to define your domain model:

Business Rules

Learn how to create and use business rules:

Configuration

Learn how to configure EF Core integration:

Integration

Learn how to integrate with frameworks:

Generators

Learn how to use source generators:

Version Management

Learn how to track domain evolution:

Tooling

Learn how to use JD.Domain tools:

Guide Format

Each how-to guide follows this structure:

  1. Goal - What you'll accomplish
  2. Prerequisites - What you need before starting
  3. Steps - Numbered steps with code examples
  4. Result - What you should see
  5. Next Steps - Related guides

Finding the Right Guide

By Task

  • I want to define my domain → Domain Modeling guides
  • I want to add validation → Business Rules guides
  • I want to use EF Core → Configuration + Integration guides
  • I want to generate code → Generator guides
  • I want to track changes → Version Management guides
  • I want to use command-line tools → Tooling guides

By Experience Level

Beginner:

  • Define Entities
  • Create Invariants
  • Apply to ModelBuilder
  • Use CLI Tools

Intermediate:

  • Define Value Objects
  • Create Validators
  • Configure Indexes
  • Generate FluentValidation
  • Create Snapshots

Advanced:

  • Define Enums
  • Create Policies
  • Configure Relationships
  • Generate Domain Types
  • Generate Migration Plans

See Also