Soenneker.Dtos.RequestDataOptions 11.0.243

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

A shared request DTO for cursor pagination, multi-field sorting, free-text search, exact-match filters, and range filters. It defines the wire shape; the receiving API decides which fields and limits are valid.

Install

dotnet add package Soenneker.Dtos.RequestDataOptions

Build a query request

using Soenneker.Dtos.Filters.ExactMatch;
using Soenneker.Dtos.Filters.Range;
using Soenneker.Dtos.Options.OrderBy;
using Soenneker.Dtos.RequestDataOptions;
using Soenneker.Enums.SortDirections;

var options = new RequestDataOptions
{
    PageSize = 50,
    IncludeCount = true,
    Search = "paid",
    SearchFields = ["description", "reference"],
    OrderBy =
    [
        new OrderByOption { Field = "createdAt", Direction = SortDirection.Desc },
        new OrderByOption { Field = "id", Direction = SortDirection.Asc }
    ],
    Filters =
    [
        new ExactMatchFilter { Field = "status", Value = "active" }
    ],
    RangeFilters =
    [
        new RangeFilter { Field = "total", GreaterThanOrEqual = 25m, LessThan = 500m }
    ]
};

OrderBy entries are sent in list order, allowing the server to treat the first as the primary sort. Range filters expose exclusive (GreaterThan, LessThan) and inclusive (GreaterThanOrEqual, LessThanOrEqual) bounds.

For the next page, copy the continuation token returned by the API without parsing or changing it:

options.ContinuationToken = continuationTokenFromResponse;

Server-side responsibilities

This type does not enforce a positive or maximum PageSize, interpret filters, escape search syntax, or verify field names. A server consuming it should allow-list sortable, searchable, and filterable fields; parameterize values; cap page size; and reject unsupported combinations. IncludeCount may make a query materially more expensive, so the server remains free to ignore or restrict it.

Nullable members are serialized or omitted according to the configured System.Text.Json options.

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

Showing the top 5 NuGet packages that depend on Soenneker.Dtos.RequestDataOptions:

Package Downloads
Soenneker.Managers.Entities

An abstract generic manager class provides CRUD operations for entities mapped to Cosmos DB documents

Soenneker.Blazor.Consumers.Base

A wrapper around Soenneker.Blazor.ApiClient supporting auto (de)serialization for requests/responses/ProblemDetails.

Soenneker.Coordinators.Entities

A strongly-typed, generic coordinator base class that defines virtual CRUD operations for a specific request and response type.

Soenneker.DataTables.Extensions.ServerSideRequest

A collection of helpful DataTableServerSideRequest extension methods

Soenneker.Extensions.IQueryables

A collection of helpful IQueryable extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.252 221 11/11/2026
11.0.251 82 11/11/2026
11.0.250 137 11/11/2026
11.0.249 108 11/11/2026
11.0.248 112 11/11/2026
11.0.247 77 11/11/2026
11.0.246 99 11/11/2026
11.0.245 1,808 10/26/2026
11.0.244 193 10/26/2026
11.0.243 188 10/26/2026
11.0.242 170 10/26/2026
11.0.241 150 10/26/2026
11.0.240 165 10/26/2026
4.0.239 1,147 10/15/2026
4.0.238 103 10/15/2026
4.0.237 97 10/15/2026
4.0.236 145 10/14/2026
4.0.235 276 10/14/2026
4.0.232 200 10/14/2026
4.0.231 197 10/14/2026
Loading failed

Updated Multiple NuGet packages