
Dotnet Domain Modeling
If you're building line-of-business apps in C# and want to move beyond anemic CRUD models, this covers the tactical DDD patterns that actually matter: aggregate roots that enforce invariants, value objects using records, domain events, and repository contracts. The aggregate design rules table is worth the price of admission alone (reference other aggregates by ID only, one aggregate per transaction). It stays focused on the pure domain layer and explicitly punts on EF Core mapping, validation, and messaging infrastructure. The Money and Order examples show how to use private setters, factory methods, and collection encapsulation to keep business rules inside the model rather than scattered across services. Good fit if you're tired of services that are just database update scripts with extra steps.
- skills.sh installs
- 538
- GitHub stars
- 90
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wshaddix/dotnet-skills --skill dotnet-domain-modeling --agent claude-codeInstalls into .claude/skills of the current project.
Files
dotnet-domain-modeling
Domain-Driven Design tactical patterns in C#. Covers aggregate roots, entities, value objects, domain events, integration events, domain services, repository contract design, and the distinction between rich and anemic domain models. These patterns apply to the domain layer itself -- the pure C# model that encapsulates business rules -- independent of any persistence technology.
Out of scope: EF Core configuration and aggregate persistence mapping -- see [skill:dotnet-efcore-architecture]. Tactical EF Core usage (DbContext lifecycle, migrations, interceptors) -- see [skill:dotnet-efcore-patterns]. Input validation at API boundaries -- see [skill:dotnet-validation-patterns]. Choosing between EF Core, Dapper, and ADO.NET -- see [skill:dotnet-data-access-strategy]. Vertical slice architecture and request pipeline patterns -- see [skill:dotnet-architecture-patterns]. Messaging infrastructure and saga orchestration -- see [skill:dotnet-messaging-patterns].
Sponsors
Details
- Repository
- github.com/wshaddix/dotnet-skills
- Category
- .NET & C#
- First seen
- Jun 3, 2026