Soenneker.Extensions.Entities
4.0.264
Prefix Reserved
dotnet add package Soenneker.Extensions.Entities --version 4.0.264
NuGet\Install-Package Soenneker.Extensions.Entities -Version 4.0.264
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="Soenneker.Extensions.Entities" Version="4.0.264" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Entities" Version="4.0.264" />
<PackageReference Include="Soenneker.Extensions.Entities" />
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 Soenneker.Extensions.Entities --version 4.0.264
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.Entities, 4.0.264"
#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 Soenneker.Extensions.Entities@4.0.264
#: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=Soenneker.Extensions.Entities&version=4.0.264
#tool nuget:?package=Soenneker.Extensions.Entities&version=4.0.264
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Soenneker.Entities.Entity (>= 4.0.697)
- Soenneker.Extensions.String (>= 4.0.736)
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 |
|---|---|---|
| 4.0.264 | 86 | 8/31/2026 |
| 4.0.263 | 60 | 8/31/2026 |
| 4.0.262 | 74 | 8/31/2026 |
| 4.0.261 | 57 | 8/30/2026 |
| 4.0.260 | 59 | 8/30/2026 |
| 4.0.259 | 55 | 8/30/2026 |
| 4.0.258 | 46 | 8/30/2026 |
| 4.0.257 | 49 | 8/30/2026 |
| 4.0.256 | 55 | 8/30/2026 |
| 4.0.255 | 51 | 8/29/2026 |
| 4.0.254 | 56 | 8/29/2026 |
| 4.0.253 | 54 | 8/29/2026 |
| 4.0.252 | 59 | 8/29/2026 |
| 4.0.251 | 86 | 8/26/2026 |
| 4.0.250 | 95 | 8/25/2026 |
| 4.0.249 | 92 | 8/21/2026 |
| 4.0.248 | 89 | 8/18/2026 |
| 4.0.247 | 86 | 8/18/2026 |
| 4.0.246 | 97 | 8/12/2026 |
| 4.0.245 | 92 | 8/8/2026 |
Loading failed
Updated NuGet packages