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
<PackageReference Include="Soenneker.Documents.General.Named" Version="11.0.545" />
<PackageVersion Include="Soenneker.Documents.General.Named" Version="11.0.545" />
<PackageReference Include="Soenneker.Documents.General.Named" />
paket add Soenneker.Documents.General.Named --version 11.0.545
#r "nuget: Soenneker.Documents.General.Named, 11.0.545"
#:package Soenneker.Documents.General.Named@11.0.545
#addin nuget:?package=Soenneker.Documents.General.Named&version=11.0.545
#tool nuget:?package=Soenneker.Documents.General.Named&version=11.0.545
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Documents.General (>= 11.0.305)
- Soenneker.Documents.Typed.Named (>= 11.0.296)
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 |
Updated Multiple NuGet packages