Soenneker.Documents.General.Named 11.0.545

Prefix Reserved
dotnet add package Soenneker.Documents.General.Named --version 11.0.545
                    
NuGet\Install-Package Soenneker.Documents.General.Named -Version 11.0.545
                    
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.545" />
                    
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.545" />
                    
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.545
                    
#r "nuget: Soenneker.Documents.General.Named, 11.0.545"
                    
#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.545
                    
#: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.545
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Documents.General.Named&version=11.0.545
                    
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.545 60 11/11/2026
11.0.544 52 11/11/2026
11.0.543 50 11/11/2026
11.0.542 52 11/11/2026
11.0.541 50 11/11/2026
11.0.540 46 11/11/2026
11.0.539 66 11/11/2026
11.0.538 67 11/11/2026
11.0.537 72 11/11/2026
11.0.536 69 11/11/2026
11.0.535 142 11/3/2026
11.0.534 91 11/3/2026
11.0.533 84 11/3/2026
11.0.532 95 11/3/2026
11.0.531 92 11/2/2026
11.0.530 110 10/27/2026
11.0.529 100 10/27/2026
11.0.528 98 10/27/2026
11.0.527 96 10/27/2026
11.0.526 100 10/26/2026
Loading failed

Updated Multiple NuGet packages