Using Specifications for Domain Rules and Validation
Specification Pattern DDD validation uses pure C# rules while structured results, request checks, and aggregate invariant enforcement stay clearly separate.
C# and .NET by Nick Cosentino
Practical, in-depth content for software engineers and technical leaders. Learn C#, .NET, software architecture, AI-assisted development, and engineering leadership with guidance you can apply on your team today.

The latest articles on software engineering, architecture, AI, and career growth.
Specification Pattern DDD validation uses pure C# rules while structured results, request checks, and aggregate invariant enforcement stay clearly separate.
Learn RAG query transformation in .NET through baseline retrieval, HyDE, step-back abstraction, decomposition, candidate merging, and retrieval evaluation.
Learn how to register ordered pipeline stages with Microsoft DI, choose safe service lifetimes, create background scopes, and avoid captive dependencies.
Compare Specification, Repository, and Query Object in .NET, then place predicates, GoF patterns, validation, policies, and rules engines correctly in code.
Go deeper into the core topics on Dev Leader, from .NET and AI to software engineering and career growth.