FlexQuery.NET 4.0.0-rc.1

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

FlexQuery.NET

NuGet Version NuGet Downloads

Dynamic filtering, sorting, paging, and projection for IQueryable in .NET.

FlexQuery.NET is the core package. It provides the query parsing engine, expression builders, validation pipeline, and all core models.

When to Use This Package

Install this package if you want to parse, validate, and compose dynamic queries independently of any specific data provider. Use this package directly when building custom integrations or when implementing your own query execution pipeline. Most applications pair it with a provider package — Entity Framework Core or Dapper — that executes the parsed query.

Installation

dotnet add package FlexQuery.NET

Quick Start

using FlexQuery.NET;
using FlexQuery.NET.Models;

var parameters = new FlexQueryParameters
{
    Filter = "status:eq:active",
    Sort = "createdAt:desc",
    Page = 1,
    PageSize = 20
};

// Parse into QueryOptions (uses the globally configured syntax)
var options = parameters.ToQueryOptions();

// Apply filter, sort, and paging to any IQueryable
var query = _context.Users.Apply(options);

// Execute using your preferred provider

Features

  • Query Parsing — Native DSL syntax with the parser registry ready for FQL and MiniOData parser packages
  • Filtering — 20+ operators (eq, neq, gt, gte, lt, lte, contains, startswith, endswith, like, in, notin, between, isnull, isnotnull, any, all, count) with nested AND/OR logic
  • Sorting — Multi-field sorting with direction and aggregate sort support
  • Paging — 1-based page indexing with configurable page size limits, plus keyset (cursor) pagination support
  • Security — Declare allowed/blocked fields, per-operation whitelists, and role-based access via QueryGovernanceOptions
  • Validation — Built-in field path, operator, and type validation with structured errors (ValidateOrThrow)
  • Diagnostics — Optional IFlexQueryExecutionListener for observability
  • Query Parsing Cache — Thread-safe parser cache for low-latency repeated queries

Supported Query Formats

The default syntax is the native DSL:

GET /api/users?filter=age:gte:18&sort=name:asc

Alternative syntaxes are available as separate parser packages:

  • FQL (SQL-inspired: filter=age >= 18 AND status = 'Active') — FlexQuery.NET.Parsers.Fql
  • MiniOData (OData-compatible: $filter=age ge 18) — FlexQuery.NET.Parsers.MiniOData

Full Documentation

https://flexquery.vercel.app

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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 (11)

Showing the top 5 NuGet packages that depend on FlexQuery.NET:

Package Downloads
FlexQuery.NET.AspNetCore

ASP.NET Core integration for FlexQuery.NET — declarative field-access security via [FieldAccess] attributes and action filters

FlexQuery.NET.EntityFrameworkCore

EF Core integration for FlexQuery.NET — async execution, filtered includes, projection, and pagination helpers

FlexQuery.NET.EFCore

EF Core integration for FlexQuery.NET — async execution, filtered includes, projection, and pagination helpers

FlexQuery.NET.Dapper

Dapper integration for FlexQuery.NET — async execution, filtered includes, projection, and pagination helpers

FlexQuery.NET.Adapters.Kendo

Kendo UI DataSource filter and sorting payload adapter for FlexQuery.NET — translates Kendo UI DataSource filter and sort parameters into canonical FlexQuery.NET query models.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0 1,128 9/23/2026
4.0.0-rc.3 118 9/22/2026
4.0.0-rc.2 128 9/17/2026
4.0.0-rc.1 147 9/10/2026
3.1.1 3,994 7/4/2026
3.1.0 376 6/26/2026
3.0.6 324 6/24/2026
3.0.5 338 6/24/2026
3.0.4 327 6/23/2026
3.0.3 322 6/23/2026
3.0.2 337 6/22/2026
3.0.1 325 6/22/2026
2.5.0 1,317 5/13/2026
2.4.0 183 5/10/2026
2.3.1 192 5/8/2026
Loading failed

- docs(readme): update root and package READMEs for v4 APIs
- merge Feature/docs site v4 (#13)
- docs(site): refine docs navigation and readability behaviors
- docs(site): redesign the landing page around the query pipeline
- docs: add v4 documentation site (Next.js + Fumadocs)