Soenneker.Documents.General 11.0.305

Prefix Reserved
dotnet add package Soenneker.Documents.General --version 11.0.305
                    
NuGet\Install-Package Soenneker.Documents.General -Version 11.0.305
                    
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.305" />
                    
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.305" />
                    
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.305
                    
#r "nuget: Soenneker.Documents.General, 11.0.305"
                    
#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.305
                    
#: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.305
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Documents.General&version=11.0.305
                    
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.305 69 11/11/2026
11.0.304 59 11/11/2026
11.0.303 65 11/11/2026
11.0.302 55 11/11/2026
11.0.301 62 11/11/2026
11.0.300 48 11/11/2026
11.0.299 48 11/11/2026
11.0.298 203 11/3/2026
11.0.297 103 11/3/2026
11.0.296 106 11/2/2026
11.0.295 150 10/27/2026
11.0.294 107 10/27/2026
11.0.293 117 10/26/2026
11.0.292 111 10/26/2026
11.0.291 132 10/26/2026
4.0.290 420 10/15/2026
4.0.289 113 10/14/2026
4.0.286 129 10/14/2026
4.0.285 95 10/14/2026
4.0.279 138 10/13/2026
Loading failed

Updated Multiple NuGet packages