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
<PackageReference Include="Soenneker.Dtos.Options.OrderBy" Version="4.0.70" />
<PackageVersion Include="Soenneker.Dtos.Options.OrderBy" Version="4.0.70" />
<PackageReference Include="Soenneker.Dtos.Options.OrderBy" />
paket add Soenneker.Dtos.Options.OrderBy --version 4.0.70
#r "nuget: Soenneker.Dtos.Options.OrderBy, 4.0.70"
#:package Soenneker.Dtos.Options.OrderBy@4.0.70
#addin nuget:?package=Soenneker.Dtos.Options.OrderBy&version=4.0.70
#tool nuget:?package=Soenneker.Dtos.Options.OrderBy&version=4.0.70
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 | Versions 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. |
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- Soenneker.Enums.SortDirections (>= 4.0.72)
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 |
Updated Soenneker.Enums.SortDirections to 4.0.72