AdCodicem.ValueObjects.Abstractions 0.3.0

Prefix Reserved
dotnet add package AdCodicem.ValueObjects.Abstractions --version 0.3.0
                    
NuGet\Install-Package AdCodicem.ValueObjects.Abstractions -Version 0.3.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="AdCodicem.ValueObjects.Abstractions" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AdCodicem.ValueObjects.Abstractions" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="AdCodicem.ValueObjects.Abstractions" />
                    
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 AdCodicem.ValueObjects.Abstractions --version 0.3.0
                    
#r "nuget: AdCodicem.ValueObjects.Abstractions, 0.3.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 AdCodicem.ValueObjects.Abstractions@0.3.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=AdCodicem.ValueObjects.Abstractions&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=AdCodicem.ValueObjects.Abstractions&version=0.3.0
                    
Install as a Cake Tool

AdCodicem.ValueObjects.Abstractions

Dependency-free contracts for single-value DDD value objects: IValueObject<TSelf, TValue> with static abstract factories, allocation-free validation results, a runtime descriptor registry, and the DataAnnotations attributes [ParsesAs] and [NotDefault], which hold raw text and a value-object member to a value object's rules.

It is a package of AdCodicem.ValueObjects, single-value DDD value objects for .NET 10 and later: a readonly partial struct marked [ValueObject<T>] gets its whole implementation from a source generator, and crosses every boundary as its underlying type. It works with the main package, which holds the generator:

dotnet add package AdCodicem.ValueObjects
dotnet add package AdCodicem.ValueObjects.Abstractions
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 (26)

Showing the top 5 NuGet packages that depend on AdCodicem.ValueObjects.Abstractions:

Package Downloads
AdCodicem.ValueObjects

An answer to primitive obsession: single-value DDD value objects for .NET. Annotate a readonly partial struct with [ValueObject<T>] and get validation, normalization, parsing, formatting, comparison, JSON and type conversion generated with no reflection and no allocation. This is the package to install.

AdCodicem.ValueObjects.Identifiers

Stripe-style public entity identifiers as value objects. Annotate a readonly partial struct with [EntityId("acc")] and get a prefixed, fixed-width, index-friendly identifier with a check character, generated with no reflection and no allocation beyond the value itself.

AdCodicem.ValueObjects.Json

System.Text.Json support for AdCodicem value objects: a converter factory that covers source-generated serializer contexts and hand-written value objects, JsonSerializerOptions extensions, and a transform that describes each value object in the JSON Schema System.Text.Json exports.

AdCodicem.ValueObjects.NewtonsoftJson

Newtonsoft.Json support for AdCodicem value objects, for interoperating with code, SDKs and message contracts that have not moved to System.Text.Json.

AdCodicem.ValueObjects.EntityFrameworkCore

Entity Framework Core support for AdCodicem value objects: value converters and comparers that store the bare underlying value, plus a convention that maps every value object of an assembly in one call, keys generated the provider's way, .Value translated in LINQ queries to the column itself, and opt-in CHECK constraints from the rules each value object declares, a violated one reported with its rule code under UseValueObjectCheckErrors().

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 433 10/29/2026
0.3.0-preview.425 201 10/27/2026
0.3.0-preview.403 62 10/25/2026
0.3.0-preview.322 301 10/19/2026
0.3.0-preview.283 216 10/12/2026
0.3.0-preview.248 115 10/5/2026
0.3.0-preview.205 110 10/4/2026
0.3.0-preview.197 114 10/3/2026
0.2.2-preview.0.172 117 10/3/2026
0.2.2-preview.0.144 116 10/2/2026
0.2.2-preview.0.143 108 10/2/2026
0.2.2-preview.0.138 135 10/2/2026
0.2.2-preview.0.137 119 10/2/2026
0.2.2-preview.0.136 116 10/2/2026
0.2.2-preview.0.135 111 10/1/2026
0.2.2-preview.0.100 122 10/1/2026
0.2.2-preview.0.2 116 9/30/2026
0.2.2-preview.0.1 112 9/30/2026
0.2.1 373 9/30/2026
0.2.1-preview.0.12 110 9/30/2026
Loading failed