Soenneker.Dtos.Filters.Range 11.0.85

Prefix Reserved
dotnet add package Soenneker.Dtos.Filters.Range --version 11.0.85
                    
NuGet\Install-Package Soenneker.Dtos.Filters.Range -Version 11.0.85
                    
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.Filters.Range" Version="11.0.85" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Dtos.Filters.Range" Version="11.0.85" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Dtos.Filters.Range" />
                    
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.Filters.Range --version 11.0.85
                    
#r "nuget: Soenneker.Dtos.Filters.Range, 11.0.85"
                    
#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.Filters.Range@11.0.85
                    
#: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.Filters.Range&version=11.0.85
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Dtos.Filters.Range&version=11.0.85
                    
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.Filters.Range

Represents inclusive or exclusive bounds for a named comparable field.

Installation

dotnet add package Soenneker.Dtos.Filters.Range

Numeric range

using Soenneker.Dtos.Filters.Range;

var filter = new RangeFilter
{
    Field = "price",
    GreaterThanOrEqual = 10.00m,
    LessThan = 50.00m
};

Timestamp range

var filter = new RangeFilter
{
    Field = "createdAt",
    GreaterThanOrEqual = new DateTimeOffset(2026, 1, 1, 0, 0, 0, TimeSpan.Zero),
    LessThan = new DateTimeOffset(2027, 1, 1, 0, 0, 0, TimeSpan.Zero)
};

System.Text.Json uses field, greaterThan, greaterThanOrEqual, lessThan, and lessThanOrEqual as wire names.

Normally choose at most one lower bound and one upper bound:

  • GreaterThan is exclusive; GreaterThanOrEqual is inclusive.
  • LessThan is exclusive; LessThanOrEqual is inclusive.

The DTO does not reject conflicting lower or upper operators, reversed ranges, incomparable types, null-only filters, or unsupported fields. object? bounds also deserialize to serializer-specific untyped representations such as JsonElement or JValue.

At the server boundary, allow-list Field, choose the expected CLR type from server-owned metadata, convert each supplied bound, reject contradictory combinations, and parameterize the resulting query. Never concatenate field names or bound values into a query expression.

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.Filters.Range:

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.85 415 11/11/2026
11.0.84 208 11/11/2026
11.0.83 194 11/11/2026
11.0.82 2,038 10/26/2026
11.0.81 95 10/26/2026
11.0.80 201 10/26/2026
11.0.79 96 10/26/2026
4.0.78 1,405 10/14/2026
4.0.77 152 10/14/2026
4.0.76 282 10/14/2026
4.0.75 212 10/14/2026
4.0.74 98 10/14/2026
4.0.73 114 10/14/2026
4.0.68 234 10/12/2026
4.0.66 397 10/12/2026
4.0.65 106 10/11/2026
4.0.64 106 10/11/2026
4.0.63 794 10/11/2026
4.0.62 1,757 9/30/2026
4.0.61 154 9/30/2026
Loading failed

Updated Multiple NuGet packages