Soenneker.Documents.General 11.0.310

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 11.0.310
                    
NuGet\Install-Package Soenneker.Documents.General -Version 11.0.310
                    
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="11.0.310" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Documents.General" Version="11.0.310" />
                    
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 11.0.310
                    
#r "nuget: Soenneker.Documents.General, 11.0.310"
                    
#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@11.0.310
                    
#: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=11.0.310
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Documents.General&version=11.0.310
                    
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 System.Text.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 net11.0 is compatible. 
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
11.0.313 40 12/1/2026
11.0.312 49 12/1/2026
11.0.311 42 12/1/2026
11.0.310 112 11/29/2026
11.0.309 151 11/18/2026
11.0.308 105 11/18/2026
11.0.307 99 11/18/2026
11.0.306 139 11/15/2026
11.0.305 140 11/11/2026
11.0.304 117 11/11/2026
11.0.303 126 11/11/2026
11.0.302 111 11/11/2026
11.0.301 122 11/11/2026
11.0.300 100 11/11/2026
11.0.299 104 11/11/2026
11.0.298 221 11/3/2026
11.0.297 115 11/3/2026
11.0.296 115 11/2/2026
11.0.295 163 10/27/2026
11.0.294 119 10/27/2026
Loading failed

Updated Soenneker.Documents.Typed to 11.0.178