Andrew.Domain.SharedKernel 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Andrew.Domain.SharedKernel --version 1.0.0
                    
NuGet\Install-Package Andrew.Domain.SharedKernel -Version 1.0.0
                    
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="Andrew.Domain.SharedKernel" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Andrew.Domain.SharedKernel" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Andrew.Domain.SharedKernel" />
                    
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 Andrew.Domain.SharedKernel --version 1.0.0
                    
#r "nuget: Andrew.Domain.SharedKernel, 1.0.0"
                    
#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 Andrew.Domain.SharedKernel@1.0.0
                    
#: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=Andrew.Domain.SharedKernel&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Andrew.Domain.SharedKernel&version=1.0.0
                    
Install as a Cake Tool

๐Ÿงฉ Domain.SharedKernel

Domain.SharedKernel is a clean, reusable shared library designed for Domain-Driven Design (DDD) applications. It encapsulates core domain logic, base entity definitions, ID generation, and abstraction contracts that can be shared across multiple bounded contexts or services.


๐Ÿ“ฆ What's Included

โœ… BaseEntity

A common abstract base class for domain entities, providing:

  • Identity management
  • Domain event support (e.g., integration with MediatR)

Useful for maintaining consistency and reducing duplication across aggregate roots and entities.


๐Ÿ” HashHelper

A utility class for generating secure hashes


โ„๏ธ Snowflake ID Generator


๐Ÿงฉ Core Abstractions

The library includes foundational interfaces to support clean architecture and separation of concerns:

  • IAggregateRoot โ€“ Marks an entity as an aggregate root.
  • ICurrentUser โ€“ Provides user context abstraction (e.g., UserId, TenantId).
  • IUnitOfWork โ€“ Defines atomic transaction boundaries across repositories.

๐Ÿ“˜ Why Use a Shared Kernel?

Following the Shared Kernel pattern in DDD provides:

  • ๐Ÿ” Consistency in entity and contract definitions
  • ๐Ÿงผ Purity by isolating domain logic from infrastructure
  • ๐Ÿ”„ Reusability across microservices or modules
  • ๐Ÿ“ Clarity through clearly defined interfaces

๐Ÿ“„ License

MIT License

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Andrew.Domain.SharedKernel:

Package Downloads
Andrew.Infrastructure.SharedKernel

Making it easier to use Infrastructure layer in DDD. Contains Unit of Work,AppHelper,Dbcontext,CurrentUser .

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.5 129 7/5/2025
1.1.4 74 7/5/2025
1.1.3 145 6/24/2025
1.1.2 139 6/24/2025
1.1.1 195 6/23/2025
1.1.0 132 6/23/2025
1.0.0 143 6/22/2025