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
                    
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.General" Version="4.0.239" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Documents.General" Version="4.0.239" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Documents.General" />
                    
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.General --version 4.0.239
                    
#r "nuget: Soenneker.Documents.General, 4.0.239"
                    
#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.General@4.0.239
                    
#: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.General&version=4.0.239
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Documents.General&version=4.0.239
                    
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.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 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 (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
Loading failed

Update dependency Soenneker.Documents.Typed to 4.0.111 (#619)