Soenneker.Extensions.Entities
11.0.336
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.Entities --version 11.0.336
NuGet\Install-Package Soenneker.Extensions.Entities -Version 11.0.336
<PackageReference Include="Soenneker.Extensions.Entities" Version="11.0.336" />
<PackageVersion Include="Soenneker.Extensions.Entities" Version="11.0.336" />
<PackageReference Include="Soenneker.Extensions.Entities" />
paket add Soenneker.Extensions.Entities --version 11.0.336
#r "nuget: Soenneker.Extensions.Entities, 11.0.336"
#:package Soenneker.Extensions.Entities@11.0.336
#addin nuget:?package=Soenneker.Extensions.Entities&version=11.0.336
#tool nuget:?package=Soenneker.Extensions.Entities&version=11.0.336
Soenneker.Extensions.Entities
Extracts Cosmos-style partition and document identifiers from an IEntity compound Id.
Installation
dotnet add package Soenneker.Extensions.Entities
Usage
using Soenneker.Entities.Entity.Abstract;
using Soenneker.Extensions.Entities;
IEntity entity = GetEntity();
entity.Id = "customer-42:order-100";
string partitionKey = entity.ToPartitionKey(); // "customer-42"
string documentId = entity.ToDocumentId(); // "order-100"
The ID is split at its last colon. This supports compound partition keys:
region:customer-42:order-100
└──── partition key ────┘ └ document ID
When the ID contains no colon, both methods return the complete ID. A leading colon produces an empty partition key; a trailing colon produces an empty document ID. Null or empty entity IDs are rejected by the underlying string split operation, and passing a null entity is not supported.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Entities.Entity (>= 11.0.717)
- Soenneker.Extensions.String (>= 11.0.829)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.344 | 0 | 12/3/2026 |
| 11.0.343 | 0 | 12/2/2026 |
| 11.0.341 | 0 | 12/2/2026 |
| 11.0.340 | 0 | 12/2/2026 |
| 11.0.339 | 0 | 12/2/2026 |
| 11.0.338 | 45 | 12/2/2026 |
| 11.0.337 | 56 | 12/1/2026 |
| 11.0.336 | 49 | 12/1/2026 |
| 11.0.335 | 51 | 12/1/2026 |
| 11.0.334 | 61 | 11/30/2026 |
| 11.0.333 | 61 | 11/30/2026 |
| 11.0.332 | 64 | 11/29/2026 |
| 11.0.331 | 100 | 11/18/2026 |
| 11.0.329 | 92 | 11/18/2026 |
| 11.0.327 | 113 | 11/15/2026 |
| 11.0.326 | 94 | 11/11/2026 |
| 11.0.325 | 97 | 11/11/2026 |
| 11.0.324 | 95 | 11/11/2026 |
| 11.0.323 | 96 | 11/11/2026 |
| 11.0.322 | 98 | 11/11/2026 |
Updated Soenneker.Extensions.String to 11.0.829