Soenneker.Dtos.Options.OrderBy 11.0.101

Prefix Reserved
dotnet add package Soenneker.Dtos.Options.OrderBy --version 11.0.101
                    
NuGet\Install-Package Soenneker.Dtos.Options.OrderBy -Version 11.0.101
                    
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.101" />
                    
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.101" />
                    
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.101
                    
#r "nuget: Soenneker.Dtos.Options.OrderBy, 11.0.101"
                    
#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.101
                    
#: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.101
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Dtos.Options.OrderBy&version=11.0.101
                    
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.101 359 11/11/2026
11.0.100 130 11/11/2026
11.0.99 1,862 10/26/2026
11.0.98 193 10/26/2026
11.0.97 203 10/26/2026
11.0.96 93 10/26/2026
4.0.95 1,384 10/15/2026
4.0.94 123 10/15/2026
4.0.93 102 10/14/2026
4.0.92 156 10/14/2026
4.0.91 300 10/14/2026
4.0.90 214 10/14/2026
4.0.84 224 10/13/2026
4.0.83 101 10/12/2026
4.0.82 409 10/12/2026
4.0.81 112 10/12/2026
4.0.80 111 10/11/2026
4.0.79 109 10/11/2026
4.0.78 2,332 9/30/2026
4.0.77 262 9/30/2026
Loading failed

Update dependency Soenneker.Enums.SortDirections to 11.0.105 (#361)