Soenneker.Extensions.Entities
11.0.314
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.Entities --version 11.0.314
NuGet\Install-Package Soenneker.Extensions.Entities -Version 11.0.314
<PackageReference Include="Soenneker.Extensions.Entities" Version="11.0.314" />
<PackageVersion Include="Soenneker.Extensions.Entities" Version="11.0.314" />
<PackageReference Include="Soenneker.Extensions.Entities" />
paket add Soenneker.Extensions.Entities --version 11.0.314
#r "nuget: Soenneker.Extensions.Entities, 11.0.314"
#:package Soenneker.Extensions.Entities@11.0.314
#addin nuget:?package=Soenneker.Extensions.Entities&version=11.0.314
#tool nuget:?package=Soenneker.Extensions.Entities&version=11.0.314
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.713)
- Soenneker.Extensions.String (>= 4.0.800)
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.315 | 0 | 10/27/2026 |
| 11.0.314 | 46 | 10/26/2026 |
| 11.0.312 | 54 | 10/26/2026 |
| 4.0.310 | 97 | 10/15/2026 |
| 4.0.309 | 88 | 10/14/2026 |
| 4.0.308 | 78 | 10/14/2026 |
| 4.0.306 | 81 | 10/14/2026 |
| 4.0.305 | 85 | 10/14/2026 |
| 4.0.299 | 95 | 10/13/2026 |
| 4.0.298 | 90 | 10/13/2026 |
| 4.0.296 | 90 | 10/12/2026 |
| 4.0.295 | 105 | 10/11/2026 |
| 4.0.294 | 95 | 10/11/2026 |
| 4.0.293 | 104 | 9/30/2026 |
| 4.0.292 | 97 | 9/30/2026 |
| 4.0.291 | 116 | 9/25/2026 |
| 4.0.290 | 100 | 9/25/2026 |
| 4.0.289 | 110 | 9/24/2026 |
| 4.0.288 | 109 | 9/24/2026 |
| 4.0.287 | 153 | 9/16/2026 |
Updated Soenneker.Entities.Entity to 11.0.713