Brdd.Design.Core
0.2.0
dotnet add package Brdd.Design.Core --version 0.2.0
NuGet\Install-Package Brdd.Design.Core -Version 0.2.0
<PackageReference Include="Brdd.Design.Core" Version="0.2.0" />
<PackageVersion Include="Brdd.Design.Core" Version="0.2.0" />
<PackageReference Include="Brdd.Design.Core" />
paket add Brdd.Design.Core --version 0.2.0
#r "nuget: Brdd.Design.Core, 0.2.0"
#:package Brdd.Design.Core@0.2.0
#addin nuget:?package=Brdd.Design.Core&version=0.2.0
#tool nuget:?package=Brdd.Design.Core&version=0.2.0
🔷 Brdd.Design.Core (.NET)
Business Rule Driven Design (BRDD) implementation for .NET.
This library provides the foundational building blocks for implementing the BRDD pattern in .NET applications, prioritizing business rules as the first-class citizens of your architecture.
🤖 AI-First by Design
Brdd.Design.Core is built to be AI-Native. Its highly structured pattern of ExecutionContext, ValidationContext, and specialized services makes it exceptionally easy for AI coding assistants to understand, implement, and test your business logic without ambiguity.
📦 Key Components
ExecutionContext: A narrative container for data, setters, and side effects.ValidationContext: A standardized report for business rule compliance.UseCase: The central orchestrator for business processes.
🚀 Installation
dotnet add package Brdd.Design.Core
🏗 Usage Example
// Define your Use Case
public class ProcessOrderUseCase : IUseCase<OrderInput, OrderResult>
{
public async Task<ExecutionContext<OrderResult>> Execute(OrderInput input)
{
var context = ExecutionContext.Init<OrderResult>("US001_PROCESS_ORDER");
// 1. Validation
if (input.Amount <= 0) {
context.Validation.AddError("ORD_001", "Invalid amount");
return context;
}
// 2. Logic & Setters
context.AddSetter("SET_STATUS", "PAID");
// 3. Side Effects
context.AddEffect(EffectType.Post, "EFF_SEND_EMAIL", async () => { /* ... */ });
return context;
}
}
📚 Links
- Official Website: https://brdd.design
- Manifesto: BRDD Manifesto
- GitHub Repository: brdd-dotnet
Officially maintained by Defol Tech.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.