Soenneker.Documents.General.Named 11.0.551

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

Provides a semantic base type for general-purpose documents that have both a type discriminator and a name.

Installation

dotnet add package Soenneker.Documents.General.Named

Usage

using Soenneker.Documents.General.Named;

public sealed class TemplateDocument : NamedGeneralDocument
{
    public override string EntityType { get; set; } = "template";

    public string Content { get; set; } = null!;
}

var template = new TemplateDocument
{
    DocumentId = "welcome-email",
    PartitionKey = "tenant-7",
    CreatedAt = DateTimeOffset.UtcNow,
    Name = "Welcome email",
    Content = "Hello..."
};

The inherited fields serialize as id, partitionKey, createdAt, modifiedAt, entityType, and name with System.Text.Json attributes.

NamedGeneralDocument adds no persistence, validation, or discriminator logic. Derived types must implement EntityType; callers must initialize identity, timestamps, and Name before persistence. Keep EntityType stable if it is used to select a concrete model during reads.

INamedGeneralDocument combines the IGeneralDocument and INamedTypedDocument marker contracts without adding members. Use it when registration or persistence code needs to select this document family.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.551 103 11/18/2026
11.0.548 93 11/18/2026
11.0.547 96 11/15/2026
11.0.546 98 11/15/2026
11.0.545 111 11/11/2026
11.0.544 100 11/11/2026
11.0.543 97 11/11/2026
11.0.542 103 11/11/2026
11.0.541 95 11/11/2026
11.0.540 99 11/11/2026
11.0.539 91 11/11/2026
11.0.538 96 11/11/2026
11.0.537 97 11/11/2026
11.0.536 94 11/11/2026
11.0.535 146 11/3/2026
11.0.534 97 11/3/2026
11.0.533 91 11/3/2026
11.0.532 101 11/3/2026
11.0.531 97 11/2/2026
11.0.530 115 10/27/2026
Loading failed

Update dependency Soenneker.Documents.General to 11.0.309 (#958)