Andrew.Domain.SharedKernel 1.1.2

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


๐Ÿ“ฆ Installation

Install it from NuGet:

.NET CLI

dotnet add package Andrew.Domain.SharedKernel

Package Manager

NuGet\Install-Package Andrew.Domain.SharedKernel

๐Ÿ“ฆ What's Included

โœ… BaseEntity

A common abstract base class for domain entities, providing:

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

This helps maintain consistency and reduce duplication across aggregate roots and entities.


๐Ÿ” HashHelper

A utility class for generating secure hashes, such as:

  • SHA256
  • MD5

Useful for password storage, token generation, and data integrity checks.


โ„๏ธ Snowflake ID Generator

Generates globally unique, time-based 64-bit identifiers using the Snowflake algorithm, ideal for distributed systems.


๐Ÿงฉ Core Abstractions

The library provides key interfaces for clean domain architecture:

  • IAggregateRoot โ€“ Indicates an aggregate root in the domain model.
  • ICurrentUser โ€“ Provides access to user context such as UserId, TenantId.
  • IUnitOfWork โ€“ Defines transactional boundaries for repository operations.

๐Ÿ“˜ Why Use a Shared Kernel?

The Shared Kernel pattern promotes:

  • ๐Ÿ” Consistency in domain design across projects
  • ๐Ÿงผ Purity by decoupling domain logic from infrastructure
  • ๐Ÿ”„ Reusability of common logic across microservices
  • ๐Ÿ“ Clarity through well-defined contracts and interfaces

๐Ÿ“„ License

MIT License


๐Ÿค Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve or extend the library.

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