Soenneker.Documents.General
4.0.239
Prefix Reserved
dotnet add package Soenneker.Documents.General --version 4.0.239
NuGet\Install-Package Soenneker.Documents.General -Version 4.0.239
<PackageReference Include="Soenneker.Documents.General" Version="4.0.239" />
<PackageVersion Include="Soenneker.Documents.General" Version="4.0.239" />
<PackageReference Include="Soenneker.Documents.General" />
paket add Soenneker.Documents.General --version 4.0.239
#r "nuget: Soenneker.Documents.General, 4.0.239"
#:package Soenneker.Documents.General@4.0.239
#addin nuget:?package=Soenneker.Documents.General&version=4.0.239
#tool nuget:?package=Soenneker.Documents.General&version=4.0.239
Soenneker.Documents.General
Provides a semantic base type and marker interface for general-purpose typed documents.
Installation
dotnet add package Soenneker.Documents.General
Usage
using Soenneker.Documents.General;
public sealed class SettingDocument : GeneralDocument
{
public override string EntityType { get; set; } = "setting";
public string Key { get; set; } = null!;
public string Value { get; set; } = null!;
}
var setting = new SettingDocument
{
DocumentId = "theme",
PartitionKey = "tenant-7",
CreatedAt = DateTimeOffset.UtcNow,
Key = "theme",
Value = "dark"
};
GeneralDocument inherits the identity and timestamp fields from Document and the required EntityType discriminator from TypedDocument. EntityType serializes as entityType with both System.Text.Json and Newtonsoft.Json.
The package adds no persistence, validation, discriminator enforcement, or serialization converter. Derived types must implement EntityType, initialize required values, and keep the discriminator stable if readers use it to select a concrete type.
IGeneralDocument adds no members beyond ITypedDocument; use it when registration or persistence code needs to identify this general-document family separately from other typed documents.
| 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.Documents.Typed (>= 4.0.111)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Documents.General:
| Package | Downloads |
|---|---|
|
Soenneker.Documents.General.Named
A document type for general storage purposes, derived from GeneralDocument, providing a Name property |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.239 | 0 | 8/30/2026 |
| 4.0.238 | 0 | 8/30/2026 |
| 4.0.237 | 0 | 8/29/2026 |
| 4.0.235 | 52 | 8/26/2026 |
| 4.0.234 | 62 | 8/25/2026 |
| 4.0.233 | 118 | 8/21/2026 |
| 4.0.232 | 230 | 8/19/2026 |
| 4.0.231 | 129 | 8/18/2026 |
| 4.0.230 | 117 | 8/13/2026 |
| 4.0.229 | 111 | 8/8/2026 |
| 4.0.228 | 110 | 8/7/2026 |
| 4.0.227 | 152 | 7/29/2026 |
| 4.0.226 | 155 | 7/29/2026 |
| 4.0.225 | 164 | 7/28/2026 |
| 4.0.224 | 125 | 7/27/2026 |
| 4.0.223 | 171 | 7/17/2026 |
| 4.0.222 | 110 | 7/17/2026 |
| 4.0.221 | 138 | 7/16/2026 |
| 4.0.220 | 117 | 7/16/2026 |
| 4.0.219 | 152 | 7/15/2026 |
Update dependency Soenneker.Documents.Typed to 4.0.111 (#619)