Soenneker.Constants.Data 11.0.667

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

Provides shared string-length limits and the default Cosmos DB page size used across Soenneker data contracts.

Install

dotnet add package Soenneker.Constants.Data

Values

Constant Value Intended use
DataConstants.Url 2000 Maximum character count for URL fields
DataConstants.Name 255 Maximum character count for human-readable names
DataConstants.DefaultCosmosPageSize 500 Default item count requested by Soenneker Cosmos paging APIs

Usage

using System.ComponentModel.DataAnnotations;
using Soenneker.Constants.Data;

public sealed class CreateLinkRequest
{
    [StringLength(DataConstants.Name)]
    public required string Name { get; init; }

    [StringLength(DataConstants.Url)]
    public required string Url { get; init; }
}

These are compile-time constants, so their numeric values are embedded into consuming assemblies. Rebuild consumers after upgrading if a constant changes.

DefaultCosmosPageSize is a library convention, not a Cosmos DB service limit. Override it when request-unit cost, response size, or latency requires a different page size.

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 (2)

Showing the top 2 NuGet packages that depend on Soenneker.Constants.Data:

Package Downloads
Soenneker.Cosmos.Repository

A data persistence abstraction layer for Cosmos DB

Soenneker.Requests.Entities.Named

A request model that includes a required, length-limited Name property for named entities.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.667 686 11/11/2026
11.0.666 191 11/11/2026
11.0.665 2,326 10/30/2026
11.0.664 97 10/30/2026
11.0.663 1,204 10/26/2026
4.0.662 1,306 10/14/2026
4.0.661 228 10/14/2026
4.0.660 138 10/14/2026
4.0.659 129 10/14/2026
4.0.658 114 10/14/2026
4.0.654 233 10/13/2026
4.0.653 122 10/12/2026
4.0.651 409 10/12/2026
4.0.650 566 10/11/2026
4.0.649 124 10/11/2026
4.0.648 3,054 9/24/2026
4.0.647 112 9/24/2026
4.0.646 1,514 9/15/2026
4.0.644 1,217 9/12/2026
4.0.643 126 9/12/2026
Loading failed

Update dependency Soenneker.Attributes.PublicOpenApiObject to 11.0.67 (#1149)