Soenneker.Extensions.Entities 11.0.326

Prefix Reserved
dotnet add package Soenneker.Extensions.Entities --version 11.0.326
                    
NuGet\Install-Package Soenneker.Extensions.Entities -Version 11.0.326
                    
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="11.0.326" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Entities" Version="11.0.326" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Entities" />
                    
Project file
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 11.0.326
                    
#r "nuget: Soenneker.Extensions.Entities, 11.0.326"
                    
#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@11.0.326
                    
#: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=11.0.326
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Entities&version=11.0.326
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.326 77 11/11/2026
11.0.325 80 11/11/2026
11.0.324 77 11/11/2026
11.0.323 79 11/11/2026
11.0.322 83 11/11/2026
11.0.321 76 11/11/2026
11.0.320 85 11/11/2026
11.0.319 72 11/10/2026
11.0.318 98 11/3/2026
11.0.317 97 11/3/2026
11.0.316 93 11/2/2026
11.0.315 101 10/27/2026
11.0.314 103 10/26/2026
11.0.312 103 10/26/2026
4.0.310 108 10/15/2026
4.0.309 100 10/14/2026
4.0.308 89 10/14/2026
4.0.306 94 10/14/2026
4.0.305 99 10/14/2026
4.0.299 108 10/13/2026
Loading failed

Updated Multiple NuGet packages