Arham.Foundation.Core 0.6.0-preview.5

This is a prerelease version of Arham.Foundation.Core.
dotnet add package Arham.Foundation.Core --version 0.6.0-preview.5
                    
NuGet\Install-Package Arham.Foundation.Core -Version 0.6.0-preview.5
                    
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="Arham.Foundation.Core" Version="0.6.0-preview.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Arham.Foundation.Core" Version="0.6.0-preview.5" />
                    
Directory.Packages.props
<PackageReference Include="Arham.Foundation.Core" />
                    
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 Arham.Foundation.Core --version 0.6.0-preview.5
                    
#r "nuget: Arham.Foundation.Core, 0.6.0-preview.5"
                    
#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 Arham.Foundation.Core@0.6.0-preview.5
                    
#: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=Arham.Foundation.Core&version=0.6.0-preview.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Arham.Foundation.Core&version=0.6.0-preview.5&prerelease
                    
Install as a Cake Tool

Arham.Foundation.Core

Core domain primitives for .NET applications.

Use this package when you want small, dependency-light building blocks for entities, aggregate roots, domain events, and value objects.

Install

dotnet add package Arham.Foundation.Core

What It Provides

  • Domain event contracts and base event records
  • Entity, aggregate root, and auditable entity bases
  • Stored event record and event stream helpers
  • Value object base types
  • Common identity and ownership value objects such as TenantId, OrganizationId, UserId, and Email

Example

using Arham.Foundation.Core.Entities;
using Arham.Foundation.Core.DomainEvents;
using Arham.Foundation.Core.ValueObjects;

public sealed class Customer : AggregateRoot<AggregateId>
{
    public Customer(AggregateId id, Email email)
    {
        Id = id;
        Email = email;
    }

    public Email Email { get; private set; }

    protected override void Evolve(IDomainEvent domainEvent)
    {
    }
}

Dependencies

This package intentionally stays dependency-light — only Ardalis.GuardClauses (a small domain primitive) beyond the platform APIs. It does not bring in ASP.NET Core, MediatR, OData, EF Core, MongoDB, Kafka, or service-default dependencies.

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.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Arham.Foundation.Core:

Package Downloads
Arham.Foundation.Persistence.EfCore

EF Core persistence primitives for Arham Foundation.

Arham.Foundation.Application

Application-level contracts and behaviours for Arham Foundation.

Arham.Foundation.Messaging.Nats

NATS / JetStream messaging package for Arham Foundation.

Arham.Foundation.OData

OData query helper package for Arham Foundation.

Arham.Foundation.Patching

Patch helpers and validation primitives for Arham Foundation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0-preview.5 2,240 7/5/2026
0.6.0-preview.4 111 7/5/2026
0.6.0-preview.3 521 6/22/2026
0.6.0-preview.2 151 6/19/2026
0.6.0-preview.1 119 6/19/2026
0.6.0-preview.0 139 6/18/2026
0.5.0-Preview.0 107 6/18/2026
0.4.0-Preview.0 125 6/18/2026
0.3.0-Preview.0 118 6/17/2026
0.2.0-preview.0 225 6/17/2026
0.1.0-Preview.7 108 6/16/2026
0.1.0-Preview.6 98 6/16/2026
0.1.0-Preview.5 1,985 6/16/2026
0.1.0-preview.4 114 6/13/2026
0.1.0-Preview.3 104 6/13/2026

0.6.0-preview.5: multitenancy contracts (ITenantScopedEntity, ITenantContextProvider, StaticTenantContextProvider, MissingTenantContextException, CrossTenantWriteException) moved from Arham.Foundation.Persistence.EfCore to Arham.Foundation.Core (namespace Arham.Foundation.Core.Multitenancy) so domain layers can implement the tenant marker without an EF Core dependency. EF enforcement (TenantSaveChangesInterceptor, UseArhamMultitenancy, UseArhamTenantEnforcement) and the PostgreSQL RLS half are unchanged in their packages. Breaking within the 0.6.0 preview line: update usings from Arham.Foundation.Persistence.EfCore.Multitenancy to Arham.Foundation.Core.Multitenancy for the moved types. See CHANGELOG.md and docs/Multitenancy.md.