Soenneker.Enums.SortDirections 11.0.111

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Enums.SortDirections --version 11.0.111
                    
NuGet\Install-Package Soenneker.Enums.SortDirections -Version 11.0.111
                    
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.Enums.SortDirections" Version="11.0.111" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Enums.SortDirections" Version="11.0.111" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Enums.SortDirections" />
                    
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.Enums.SortDirections --version 11.0.111
                    
#r "nuget: Soenneker.Enums.SortDirections, 11.0.111"
                    
#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.Enums.SortDirections@11.0.111
                    
#: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.Enums.SortDirections&version=11.0.111
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.SortDirections&version=11.0.111
                    
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.Enums.SortDirections

A string-backed enum-value type for carrying an ascending or descending sort direction in query contracts.

Install

dotnet add package Soenneker.Enums.SortDirections

Usage

using Soenneker.Enums.SortDirections;

SortDirection direction = SortDirection.Asc;
string wireValue = direction.Value; // "asc"

if (SortDirection.TryFromValue(input, out SortDirection? parsed))
{
    direction = parsed;
}

Available wire values:

  • SortDirection.Asc → "asc"
  • SortDirection.Desc → "desc"

System.Text.Json serializes the type as its lowercase value and restores recognized values to the shared static instances. FromValue throws for unknown input; use TryFromValue for query parameters. FromName and TryFromName use the C# member names, "Asc" and "Desc".

The type supplies direction only. The query implementation defines ordering for strings, nulls, dates, and locale-sensitive data. Validate sort fields against an explicit allowlist and build queries with the target API or database's parameterized expression mechanisms; a valid direction does not make an arbitrary field name safe.

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

Showing the top 1 NuGet packages that depend on Soenneker.Enums.SortDirections:

Package Downloads
Soenneker.Dtos.Options.OrderBy

An object for ordering during querying

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.115 0 12/3/2026
11.0.114 0 12/2/2026
11.0.113 0 12/2/2026
11.0.112 388 12/1/2026
11.0.111 136 11/30/2026
11.0.110 61 11/30/2026
11.0.109 646 11/19/2026
11.0.108 902 11/18/2026
11.0.107 891 11/14/2026
11.0.105 866 11/11/2026
11.0.104 2,094 10/26/2026
11.0.103 214 10/26/2026
11.0.102 104 10/26/2026
11.0.101 223 10/26/2026
4.0.100 1,522 10/15/2026
4.0.99 136 10/14/2026
4.0.98 115 10/14/2026
4.0.97 172 10/14/2026
4.0.96 304 10/14/2026
4.0.90 241 10/13/2026
Loading failed

Update dependency Soenneker.Attributes.PublicOpenApiObject to 11.0.70 (#143)

Automatically merged