Soenneker.Documents.General 4.0.248

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Documents.General --version 4.0.248
                    
NuGet\Install-Package Soenneker.Documents.General -Version 4.0.248
                    
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.248" />
                    
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.248" />
                    
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.248
                    
#r "nuget: Soenneker.Documents.General, 4.0.248"
                    
#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.248
                    
#: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.248
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Documents.General&version=4.0.248
                    
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.254 0 9/9/2026
4.0.253 30 9/9/2026
4.0.252 75 9/8/2026
4.0.251 58 9/8/2026
4.0.250 106 9/7/2026
4.0.249 179 9/5/2026
4.0.248 147 9/4/2026
4.0.247 131 9/4/2026
4.0.246 123 9/4/2026
4.0.245 104 9/4/2026
4.0.244 183 9/1/2026
4.0.243 92 8/31/2026
4.0.242 100 8/31/2026
4.0.241 117 8/30/2026
4.0.240 121 8/30/2026
4.0.239 110 8/30/2026
4.0.238 123 8/30/2026
4.0.237 108 8/29/2026
4.0.235 120 8/26/2026
4.0.234 110 8/25/2026
Loading failed

Updated Soenneker.Documents.Typed to 4.0.120