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
<PackageReference Include="Soenneker.Documents.General.Named" Version="11.0.551" />
<PackageVersion Include="Soenneker.Documents.General.Named" Version="11.0.551" />
<PackageReference Include="Soenneker.Documents.General.Named" />
paket add Soenneker.Documents.General.Named --version 11.0.551
#r "nuget: Soenneker.Documents.General.Named, 11.0.551"
#:package Soenneker.Documents.General.Named@11.0.551
#addin nuget:?package=Soenneker.Documents.General.Named&version=11.0.551
#tool nuget:?package=Soenneker.Documents.General.Named&version=11.0.551
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.309)
- Soenneker.Documents.Typed.Named (>= 11.0.298)
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 |
Update dependency Soenneker.Documents.General to 11.0.309 (#958)