Compze.Abstractions 0.5.0-alpha

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

Compze.Abstractions

Foundational abstractions for the Compze framework.

What is Compze?

Compze is a .NET framework for building expressive domains through Teventive programming and Typermedia APIs. Learn more

What's in this package?

  • Entity and identity types — EntityId, TentityId, TaggregateId, the Entity<> base classes, and ValueWrapper<>
  • Time abstractions — IUtcTimeTimeSource, and the testing time source that overrides it
  • Configuration — IConfigurationParameterProvider, the extension point a host fills to answer connection-string and parameter lookups

The tessage type system (ITessage, ITevent, ITommand, ITuery and the full hierarchy) is not here — it lives in Compze.Tessaging.Abstractions.

Installation

dotnet add package Compze.Abstractions

License

Apache-2.0

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (19)

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

Package Downloads
Compze.Tessaging

Messaging infrastructure for the Compze framework including command, query, and event handling.

Compze.Tessaging.Abstractions

The tessage type system: the ITessage hierarchy Compze routes by type — tevents, tommands and tueries, the delivery-guarantee and transactional markers that classify them, the base types implementing them, and the validation holding tessage types to those rules. Depend on this to declare an application's tessages without depending on the Tessaging engine that delivers them.

Compze.Teventive

The Teventive programming model for the Compze framework: taggregates, tevents and tevent dispatching.

Compze.Sql.MySql

MySQL support for the Compze framework: declares the MySql domain database that Compze endpoints join. Also carries the MySQL plumbing the Compze.*.MySql feature backends share.

Compze.Sql.PostgreSql

PostgreSQL support for the Compze framework: declares the PgSql domain database that Compze endpoints join. Also carries the PostgreSQL plumbing the Compze.*.PostgreSql feature backends share.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.9.1-alpha 0 12/5/2026
0.9.0-alpha 52 12/5/2026
0.8.1-alpha 464 12/4/2026
0.8.0-alpha 1,349 12/2/2026
0.7.0-alpha 200 12/1/2026
0.6.0-alpha 740 12/1/2026
0.5.2-alpha 496 11/29/2026
0.5.1-alpha 300 11/28/2026
0.5.0-alpha 1,133 11/26/2026
0.4.1-alpha 233 11/25/2026
0.4.0-alpha 743 11/14/2026
0.3.0-alpha 472 7/24/2026
0.2.0-alpha 245 7/15/2026
0.1.0-alpha 429 6/4/2026

- **`EntityId`, `TentityId` and `TaggregateId` lose their parameterless constructors, which made a new random id: `EntityId.New()`, `TentityId.New()` and `TaggregateId.New()` make one now.** A serializer that found such a constructor built the id with it, and one that couldn't set `Value` afterwards, as System.Text.Json can't, read every id back as a new random one, with nothing failing. Replace `new TaggregateId()` with `TaggregateId.New()`. A `New()` that an id type of your own derived from them declares now hides theirs: declare it `new`.
- **System.Text.Json writes an `EntityId<TPrimitive>`, `EntityId`, `TentityId` or `TaggregateId` as the primitive value it wraps, such as a `Guid` string, and reads it back as the same id, also as the key of a dictionary, with no converter of your own:** each carries the new `EntityIdJsonConverter` as its `[JsonConverter]`. Where it read them at all, it wrote them as an object holding their `Value`. System.Text.Json doesn't inherit the attribute, so an id type of your own derived from them carries it too: `[JsonConverter(typeof(EntityIdJsonConverter))]`. The converter reads an id through its type's constructor that takes the primitive value alone, and an id type without one fails the first time System.Text.Json serializes it. A converter of your own for these types, in your `JsonSerializerOptions`, still takes precedence, and can be deleted.
- **Their constructors' parameter is named `value`, as the `Value` it sets,** where it was `id`, and `primitiveValue` for `EntityId<TPrimitive>`: Newtonsoft.Json, with no parameterless constructor to use, reads the ids through the constructor, matching its parameter to `Value` by name. A call that names the argument, such as `new TaggregateId(id: guid)`, names it `value` now.
- **Requires newer minor versions of other Compze packages:** Compze.Internals.SystemCE 0.12.0-internal (was 0.10.0-internal), Compze.Threading 0.14.0-alpha (was 0.13.0-alpha). Upgrading to this version upgrades each package listed here too, so their changelogs apply to this upgrade as well.