Compze.Abstractions
0.5.0-alpha
Prefix Reserved
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
<PackageReference Include="Compze.Abstractions" Version="0.5.0-alpha" />
<PackageVersion Include="Compze.Abstractions" Version="0.5.0-alpha" />
<PackageReference Include="Compze.Abstractions" />
paket add Compze.Abstractions --version 0.5.0-alpha
#r "nuget: Compze.Abstractions, 0.5.0-alpha"
#:package Compze.Abstractions@0.5.0-alpha
#addin nuget:?package=Compze.Abstractions&version=0.5.0-alpha&prerelease
#tool nuget:?package=Compze.Abstractions&version=0.5.0-alpha&prerelease
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, theEntity<>base classes, andValueWrapper<> - 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Compze.Contracts (>= 0.7.2)
- Compze.DependencyInjection (>= 0.10.0-alpha)
- Compze.Internals.SystemCE (>= 0.12.0-internal)
- Compze.Threading (>= 0.14.0-alpha)
- Compze.TypeIdentifiers (>= 0.3.0-alpha)
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.