CodeDesignPlus.Net.ValueObjects
0.13.0-beta.12737
dotnet add package CodeDesignPlus.Net.ValueObjects --version 0.13.0-beta.12737
NuGet\Install-Package CodeDesignPlus.Net.ValueObjects -Version 0.13.0-beta.12737
<PackageReference Include="CodeDesignPlus.Net.ValueObjects" Version="0.13.0-beta.12737" />
<PackageVersion Include="CodeDesignPlus.Net.ValueObjects" Version="0.13.0-beta.12737" />
<PackageReference Include="CodeDesignPlus.Net.ValueObjects" />
paket add CodeDesignPlus.Net.ValueObjects --version 0.13.0-beta.12737
#r "nuget: CodeDesignPlus.Net.ValueObjects, 0.13.0-beta.12737"
#:package CodeDesignPlus.Net.ValueObjects@0.13.0-beta.12737
#addin nuget:?package=CodeDesignPlus.Net.ValueObjects&version=0.13.0-beta.12737&prerelease
#tool nuget:?package=CodeDesignPlus.Net.ValueObjects&version=0.13.0-beta.12737&prerelease
CodeDesignPlus.Net.ValueObjects
Description
The CodeDesignPlus.Net.ValueObjects project is a Domain-Driven Design (DDD) Shared Kernel library that provides enterprise-grade, immutable Value Objects. It is designed to ensure domain consistency, financial precision, and structural integrity across all distributed microservices. By centralizing these core domain primitives, this library prevents logic duplication and guarantees a ubiquitous language across your ecosystem.
Table of Contents
About The Project
In microservice architectures, dealing with concepts like Money, Currency, and Geographical Locations repetitively can lead to severe data anomalies and precision loss (e.g., floating-point rounding errors). The CodeDesignPlus.Net.ValueObjects library solves this by offering strictly encapsulated, mathematically safe, and context-agnostic objects that act as the foundational building blocks for your aggregates and entities.
Key Features
- Money Pattern: Encapsulates monetary amounts with their respective currencies to prevent cross-currency mathematical operations and financial precision loss (ISO 4217 compliant).
- Standardized Domain Primitives: Includes robust representations for
Currency,Location, and other cross-cutting geographical and financial concepts. - Strict Immutability: All Value Objects are completely immutable. Once created, their state cannot be altered, ensuring thread safety and historical accuracy (Snapshot pattern).
- Value Equality: Implements
IEquatable<T>and overrides operators (==,!=) so objects are compared by their structural values, not their memory references. - Fail-Fast Validation: Built-in Domain Guards ensure that invalid states (like negative taxes or invalid ISO codes) are rejected at the exact moment of creation.
Installation
To install the package, run the following command:
dotnet add package CodeDesignPlus.Net.ValueObjects
Usage
For more information regarding the library, you can visit our documentation at CodeDesignPlus Doc
Roadmap
Refer to issues for a list of proposed features and known issues.
Roadmap
- Fork the Project
- Create your Feature Branch (git checkout -b features/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Contact
CodeDesignPlus - @CodeDesignPlus - wliscano@codedesignplus.com
Project Link: CodeDesignPlus.Net.ValueObjects
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- CodeDesignPlus.Net.Core.Abstractions (>= 0.13.0-beta.12737)
- CodeDesignPlus.Net.Exceptions (>= 0.13.0-beta.12737)
- CodeDesignPlus.Net.Serializers (>= 0.13.0-beta.12737)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.7)
- Microsoft.Extensions.Options (>= 9.0.7)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.7)
- Microsoft.Extensions.Options.DataAnnotations (>= 9.0.7)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CodeDesignPlus.Net.ValueObjects:
| Package | Downloads |
|---|---|
|
CodeDesignPlus.Net.gRpc.Clients.Abstractions
CodeDesignPlus.Net.gRpc.Clients.Abstractions is a library that provides a set of abstractions for building gRPC clients in .NET applications, enabling developers to create efficient and scalable gRPC-based services with ease. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.13.0-beta.12737 | 0 | 2/27/2026 |
| 0.13.0-beta.12736 | 0 | 2/27/2026 |
| 0.13.0-beta.12734 | 0 | 2/27/2026 |
| 0.13.0-beta.12733 | 0 | 2/26/2026 |
| 0.13.0-beta.12731 | 26 | 2/26/2026 |