Soenneker.Documents.Document 4.0.2693

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Documents.Document --version 4.0.2693
                    
NuGet\Install-Package Soenneker.Documents.Document -Version 4.0.2693
                    
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.Documents.Document" Version="4.0.2693" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Documents.Document" Version="4.0.2693" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Documents.Document" />
                    
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.Documents.Document --version 4.0.2693
                    
#r "nuget: Soenneker.Documents.Document, 4.0.2693"
                    
#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.Documents.Document@4.0.2693
                    
#: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.Documents.Document&version=4.0.2693
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Documents.Document&version=4.0.2693
                    
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

Soenneker.Documents.Document

The base document type providing a building block for storage objects Documents may or may not have their own separate containers. They are not tied to only one repository. A parent document may have children documents exist on them.

Install

dotnet add package Soenneker.Documents.Document

What you get

  • IDocument — The base document type providing a building block for storage objects Documents may or may not have their own separate containers. They are not tied to only one repository. A parent document may have children documents exist on them.

API at a glance

API What it does Result / important behavior
IDocument.Id This is unused by CosmosDb, it is for internal identification PartitionKey:DocumentId construction... unless DocumentId = PartitionId (then it's only one id). This also supports 'combined ids'. For example, a partition key could be guid1:guid2, and the document id is guid3. It would return guid1:guid2:guid3. During GET it builds the return value from joining PartitionKey and DocumentId (PartitionKey:DocumentId) During SET it sets the DocumentId and PartitionKey of the document.
IDocument.DocumentId Maps/serializes to the "id" json property within the document Overridable. Maps/serializes to the "id" json property within the document Overridable.
IDocument.PartitionKey Usage of the PartitionKey may be different depending on the document/entity/container. Maps to the "partitionKey" json property within the document. Supports 'combined ids' with colon between the parts. Overridable. Usage of the PartitionKey may be different depending on the document/entity/container. Maps to the "partitionKey" json property within the document. Supports 'combined ids' with colon between the parts. Overridable.
IDocument.CreatedAt Gets or sets created at. Gets or sets created at.
IDocument.ModifiedAt Gets or sets modified at. Gets or sets modified at.

Important behavior

  • IDocument.Id: During GET it builds the return value from joining PartitionKey and DocumentId (PartitionKey:DocumentId) During SET it sets the DocumentId and PartitionKey of the document.
Product 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.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Soenneker.Documents.Document:

Package Downloads
Soenneker.Documents.Audit

A derivation of Document that specifically exists for audit purposes

Soenneker.Documents.Named

Providing a name property on Document

Soenneker.AutoFaker.Overrides.Documents.Document

An AutoFaker (AutoBogus) override for the base Document object

Soenneker.Zelos.Repository

A data persistence abstraction layer for Zelos DB

Soenneker.Extensions.Enumerable.Document

A collection of helpful IEnumerable Document extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.2702 0 8/31/2026
4.0.2701 0 8/31/2026
4.0.2700 71 8/31/2026
4.0.2699 66 8/31/2026
4.0.2698 268 8/30/2026
4.0.2697 181 8/30/2026
4.0.2696 173 8/30/2026
4.0.2695 73 8/30/2026
4.0.2694 50 8/30/2026
4.0.2693 117 8/29/2026
4.0.2691 370 8/29/2026
4.0.2690 821 8/26/2026
4.0.2689 382 8/25/2026
4.0.2688 836 8/21/2026
4.0.2687 1,059 8/18/2026
4.0.2686 436 8/18/2026
4.0.2685 1,221 8/12/2026
4.0.2684 1,098 8/8/2026
4.0.2683 847 8/7/2026
4.0.2682 977 7/29/2026
Loading failed

Update dependency Soenneker.Extensions.String to 4.0.727 (#3580)