Soenneker.Dtos.RequestDataOptions 4.0.197

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 4.0.197
                    
NuGet\Install-Package Soenneker.Dtos.RequestDataOptions -Version 4.0.197
                    
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="4.0.197" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Dtos.RequestDataOptions" Version="4.0.197" />
                    
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 4.0.197
                    
#r "nuget: Soenneker.Dtos.RequestDataOptions, 4.0.197"
                    
#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@4.0.197
                    
#: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=4.0.197
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Dtos.RequestDataOptions&version=4.0.197
                    
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 or Newtonsoft.Json options.

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 (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
4.0.198 666 8/31/2026
4.0.197 233 8/30/2026
4.0.196 150 8/30/2026
4.0.194 265 8/30/2026
4.0.193 93 8/30/2026
4.0.192 154 8/30/2026
4.0.191 77 8/30/2026
4.0.190 140 8/30/2026
4.0.189 88 8/30/2026
4.0.188 145 8/29/2026
4.0.187 139 8/29/2026
4.0.186 1,646 8/21/2026
4.0.185 702 8/18/2026
4.0.184 263 8/18/2026
4.0.183 263 8/18/2026
4.0.181 109 8/18/2026
4.0.180 1,614 8/7/2026
4.0.179 962 7/29/2026
4.0.178 146 7/29/2026
4.0.177 115 7/28/2026
Loading failed

Update dependency Soenneker.Dtos.Filters.Range to 4.0.54 (#574)