Soenneker.Dtos.Options.OrderBy 11.0.112

Prefix Reserved
This package has not been indexed yet. It will appear in search results and will be available for install/restore after indexing is complete.
The package icon will become available after this package is indexed.
dotnet add package Soenneker.Dtos.Options.OrderBy --version 11.0.112
                    
NuGet\Install-Package Soenneker.Dtos.Options.OrderBy -Version 11.0.112
                    
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.Dtos.Options.OrderBy" Version="11.0.112" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Dtos.Options.OrderBy" Version="11.0.112" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Dtos.Options.OrderBy" />
                    
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.Dtos.Options.OrderBy --version 11.0.112
                    
#r "nuget: Soenneker.Dtos.Options.OrderBy, 11.0.112"
                    
#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.Dtos.Options.OrderBy@11.0.112
                    
#: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.Dtos.Options.OrderBy&version=11.0.112
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Dtos.Options.OrderBy&version=11.0.112
                    
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.Dtos.Options.OrderBy

A transport model for expressing a single sort field and optional direction in an API request.

Install

dotnet add package Soenneker.Dtos.Options.OrderBy

Usage

using Soenneker.Dtos.Options.OrderBy;
using Soenneker.Enums.SortDirections;

var orderBy = new OrderByOption
{
    Field = "createdAt",
    Direction = SortDirection.Desc
};

The JSON property names are field and direction with System.Text.Json. Field is required during object initialization. Direction accepts SortDirection.Asc, SortDirection.Desc, or null when the receiving API should choose its default.

This DTO does not verify that a field is sortable. If Field comes from an untrusted request, map it through an allow-list before using it to build SQL, expressions, or provider-specific query text; do not pass the string directly into a query engine.

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.Dtos.Options.OrderBy:

Package Downloads
Soenneker.Dtos.RequestDataOptions

A flexible request options object for paging, sorting, and filtering queryable data, similar to OData-style parameters.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.112 0 12/3/2026
11.0.111 0 12/2/2026
11.0.110 0 12/2/2026
11.0.108 394 12/1/2026
11.0.107 143 12/1/2026
11.0.106 65 11/30/2026
11.0.105 583 11/29/2026
11.0.104 916 11/18/2026
11.0.103 232 11/18/2026
11.0.102 745 11/14/2026
11.0.101 854 11/11/2026
11.0.100 213 11/11/2026
11.0.99 1,971 10/26/2026
11.0.98 204 10/26/2026
11.0.97 215 10/26/2026
11.0.96 111 10/26/2026
4.0.95 1,502 10/15/2026
4.0.94 139 10/15/2026
4.0.93 113 10/14/2026
4.0.92 166 10/14/2026
Loading failed

Updated Soenneker.Enums.SortDirections to 11.0.115