Compze.TypeIdentifiers
0.4.0-alpha
Prefix Reserved
See the version list below for details.
dotnet add package Compze.TypeIdentifiers --version 0.4.0-alpha
NuGet\Install-Package Compze.TypeIdentifiers -Version 0.4.0-alpha
<PackageReference Include="Compze.TypeIdentifiers" Version="0.4.0-alpha" />
<PackageVersion Include="Compze.TypeIdentifiers" Version="0.4.0-alpha" />
<PackageReference Include="Compze.TypeIdentifiers" />
paket add Compze.TypeIdentifiers --version 0.4.0-alpha
#r "nuget: Compze.TypeIdentifiers, 0.4.0-alpha"
#:package Compze.TypeIdentifiers@0.4.0-alpha
#addin nuget:?package=Compze.TypeIdentifiers&version=0.4.0-alpha&prerelease
#tool nuget:?package=Compze.TypeIdentifiers&version=0.4.0-alpha&prerelease
Compze.TypeIdentifiers
Stable, structural type identity for .NET: maps types to GUIDs via assembly-level declarations, produces persistence-safe identifiers that survive renames and moves, and handles generics, arrays, and mixed composite types. Zero-dependency core with pluggable assembly registration.
What is Compze?
Compze is a .NET framework for building expressive domains through Teventive programming and Typermedia APIs. Learn more
Installation
dotnet add package Compze.TypeIdentifiers
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.Internals.SystemCE (>= 0.17.0-internal)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on Compze.TypeIdentifiers:
| Package | Downloads |
|---|---|
|
Compze.Abstractions
Core abstractions for the Compze framework: entity IDs, message type contracts, time sources, serialization interfaces, and type mapping infrastructure. |
|
|
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.TypeIdentifiers.Interning
Database-local integer interning for stable type identity: maps a Compze TypeId to a small, per-database int and back for compact storage references, durably linking every spelling a type has been persisted as (reclassification and renames) behind a small, storage-agnostic provider interface. Depends only on Compze.TypeIdentifiers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.6.1-alpha | 995 | 12/3/2026 |
| 0.6.0-alpha | 184 | 12/3/2026 |
| 0.5.0-alpha | 1,313 | 12/2/2026 |
| 0.4.0-alpha | 794 | 12/1/2026 |
| 0.3.0-alpha | 3,207 | 11/14/2026 |
| 0.2.0-alpha | 494 | 7/24/2026 |
| 0.1.0-alpha | 601 | 6/4/2026 |
- **`ITypeMap.TryGetId(string, out TypeId)` resolves a type-id string without throwing:** it returns false where `GetId(string)` throws because the string names a type the map can't resolve, such as a GUID it has no mapping for. A string that isn't a type-id string at all still throws a `FormatException`.
- **A type that nothing reading stored data could build back is refused an identity:** `GetId` throws, saying why, and `TryGetId` returns false. That is a type the compiler makes, such as an anonymous type, a closure, the sequence of a `yield` method or the list a collection expression builds, and a non-public type of .NET's own, such as the sequence of a LINQ query: its `$type` would have been stored, and failed only when read.
- **`IAssemblyTypeMappingRegistrar.ReadRetiredTypeAs<T>(retiredTypeId)` reads a persisted `$type` holding the GUID of a type that no longer exists as a `T`,** alone or as a generic argument: for when a mapped type is merged into another, as a renamed type keeps its GUID. `T` is still written with the GUID of its own mapping, which the same assembly must declare with `Map<T>`, and a retired GUID can't be mapped again.
- **Requires newer minor versions of other Compze packages:** Compze.Internals.SystemCE 0.17.0-internal (was 0.8.0-internal). Upgrading to this version upgrades each package listed here too, so their changelogs apply to this upgrade as well.