Rwx.Domain 0.3.1

dotnet add package Rwx.Domain --version 0.3.1
                    
NuGet\Install-Package Rwx.Domain -Version 0.3.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rwx.Domain" Version="0.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rwx.Domain" Version="0.3.1" />
                    
Directory.Packages.props
<PackageReference Include="Rwx.Domain" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rwx.Domain --version 0.3.1
                    
#r "nuget: Rwx.Domain, 0.3.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rwx.Domain@0.3.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rwx.Domain&version=0.3.1
                    
Install as a Cake Addin
#tool nuget:?package=Rwx.Domain&version=0.3.1
                    
Install as a Cake Tool

Rwx.Domain

Domain building blocks for the Rwx framework: entities, aggregate roots, domain events, result types, repository contracts, and specifications.

Install

dotnet add package Rwx.Domain --version 0.1.0

Use

using Rwx.Domain;

public sealed class Order : AggregateRoot
{
    public string Number { get; private set; } = string.Empty;

    public void Confirm()
    {
        AddDomainEvent(new OrderConfirmed(Id));
    }
}

public sealed record OrderConfirmed(Guid OrderId) : IDomainEvent;

Entity provides identity, audit fields, soft-delete, organization scope (OrgId/DepartmentId), and immutable creation ownership (OwnerOrgId/OwnerDepartmentId/OwnerUserId). When Rwx.Persistence.EfCore's AuditableEntityInterceptor is attached, it invokes the entity audit/ownership setters automatically on SaveChanges; domain code does not set infrastructure audit fields itself. AggregateRoot additionally collects domain events for dispatch after persistence succeeds.

Use Result and Error for expected business failures, IRepository<T> and ISpecification<T> for reusable query criteria. Transaction boundaries live in the independent Rwx.UnitOfWork module.

This package contains no persistence or DI implementation; add Rwx.Persistence.EfCore when using Entity Framework Core.

Boundaries

An aggregate is the only place for its business invariants. Raise IDomainEvent to describe a completed domain fact, but do not publish broker messages, inject services, call repositories, or access EF/HTTP infrastructure from an entity. An application handler translates a completed use case into integration work when appropriate.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Rwx.Domain:

Package Downloads
Rwx.Application

Package Description

Rwx.Persistence.EfCore

Package Description

Rwx.AspNet

Package Description

Rwx.Authorization

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.1 285 7/26/2026
0.3.0 192 7/20/2026
0.2.2 209 7/14/2026
0.2.1 161 7/13/2026
0.1.1 147 7/12/2026
0.1.0 138 7/12/2026
0.0.2 239 7/12/2026
0.0.1 257 7/12/2026