Soenneker.Dtos.Options.OrderBy 4.0.70

Prefix Reserved
dotnet add package Soenneker.Dtos.Options.OrderBy --version 4.0.70
                    
NuGet\Install-Package Soenneker.Dtos.Options.OrderBy -Version 4.0.70
                    
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="4.0.70" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Dtos.Options.OrderBy" Version="4.0.70" />
                    
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 4.0.70
                    
#r "nuget: Soenneker.Dtos.Options.OrderBy, 4.0.70"
                    
#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@4.0.70
                    
#: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=4.0.70
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Dtos.Options.OrderBy&version=4.0.70
                    
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 both System.Text.Json and Newtonsoft.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 net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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
4.0.70 244 9/4/2026
4.0.69 1,097 8/31/2026
4.0.68 333 8/30/2026
4.0.67 373 8/30/2026
4.0.65 1,962 8/21/2026
4.0.64 713 8/18/2026
4.0.63 260 8/18/2026
4.0.62 274 8/18/2026
4.0.61 1,670 8/7/2026
4.0.60 990 7/29/2026
4.0.59 214 7/28/2026
4.0.58 372 7/28/2026
4.0.57 2,283 7/16/2026
4.0.56 106 7/16/2026
4.0.55 476 7/16/2026
4.0.54 2,047 7/3/2026
4.0.53 1,435 6/20/2026
4.0.52 297 6/19/2026
4.0.51 119 6/19/2026
4.0.50 3,106 6/6/2026
Loading failed

Updated Soenneker.Enums.SortDirections to 4.0.72