Soenneker.Documents.Document
4.0.2693
Prefix Reserved
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
<PackageReference Include="Soenneker.Documents.Document" Version="4.0.2693" />
<PackageVersion Include="Soenneker.Documents.Document" Version="4.0.2693" />
<PackageReference Include="Soenneker.Documents.Document" />
paket add Soenneker.Documents.Document --version 4.0.2693
#r "nuget: Soenneker.Documents.Document, 4.0.2693"
#:package Soenneker.Documents.Document@4.0.2693
#addin nuget:?package=Soenneker.Documents.Document&version=4.0.2693
#tool nuget:?package=Soenneker.Documents.Document&version=4.0.2693
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 | 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. |
-
net10.0
- Soenneker.Entities.Entity (>= 4.0.695)
- Soenneker.Extensions.String (>= 4.0.727)
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 |
Update dependency Soenneker.Extensions.String to 4.0.727 (#3580)