RsqlParserNet.EntityFrameworkCore 1.0.3

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

RsqlParserNet.EntityFrameworkCore

RsqlParserNet.EntityFrameworkCore NuGet RsqlParserNet.EntityFrameworkCore Downloads

EF Core async paging helpers that count, page, and materialize an already-composed IQueryable<T> into a framework-neutral RsqlPagedResult<T> with items and pagination metadata.

Part of the RsqlParserNet family. It builds on RsqlParserNet.Linq (allowlisted filtering, sorting, and the pagination models) and complements RsqlParserNet.AspNetCore, which owns request-string binding. This package only removes repeated endpoint code for asynchronous counting, paging, and materialization; it does not replace explicit allowlisted profiles.

Installation

dotnet add package RsqlParserNet.EntityFrameworkCore

Requires Microsoft.EntityFrameworkCore 10.0.0 (targets net10.0).

Quick start

Compose filtering and sorting through your allowlisted RsqlParserNet.Linq profile, then page and materialize asynchronously:

using RsqlParserNet;
using RsqlParserNet.Linq;
using RsqlParserNet.EntityFrameworkCore;

var query = db.Products
    .ApplyRsql("status==active", ProductRsqlProfile.Instance)
    .ApplySort(RsqlSortRequest.Parse("-createdAt"), ProductRsqlProfile.Instance);

var result = await query.ToRsqlPageAsync(
    new RsqlPageRequest(page: 1, pageSize: 25),
    cancellationToken);

result is an RsqlPagedResult<Product>:

{
  "items": [],
  "pagination": {
    "page": 1,
    "pageSize": 25,
    "totalItems": 42,
    "totalPages": 2,
    "hasPreviousPage": false,
    "hasNextPage": true
  }
}

Overloads can also apply the query and sort for you in one call:

var parsed = RsqlParser.Parse("status==active");

var result = await db.Products.ToRsqlPageAsync(
    parsed,
    RsqlSortRequest.Parse("-createdAt"),
    ProductRsqlProfile.Instance,
    new RsqlPageRequest(page: 1, pageSize: 25),
    cancellationToken);

DateTimeOffset literals are normalized to UTC by the LINQ adapter before constants are built, which keeps EF Core/Npgsql comparisons compatible with PostgreSQL timestamp with time zone parameters.

Helpers

All helpers are extension methods on IQueryable<T> in RsqlEntityFrameworkQueryableExtensions and return Task<RsqlPagedResult<T>>.

Overload What it does
ToRsqlPageAsync(page, ct) Counts, pages, and materializes the source queryable as-is.
ToRsqlPageAsync(query, profile, page, ct) Applies a parsed RsqlQuery through the profile, then pages.
ToRsqlPageAsync(sort, profile, page, ct) Applies a single RsqlSortRequest through the profile, then pages.
ToRsqlPageAsync(sorts, profile, page, ct) Applies an ordered IEnumerable<RsqlSortRequest> through the profile, then pages.
ToRsqlPageAsync(query, sort, profile, page, ct) Applies a parsed RsqlQuery and a single sort, then pages.
ToRsqlPageAsync(query, sorts, profile, page, ct) Applies a parsed RsqlQuery and ordered sorts, then pages.
ToRsqlPageAsync(expression, profile, page, parseOptions?, ct) Parses RSQL expression text, applies it, then pages.
ToRsqlPageAsync(expression, sort, profile, page, parseOptions?, ct) Parses RSQL expression text, applies it and a single sort, then pages.
ToRsqlPageAsync(expression, sorts, profile, page, parseOptions?, ct) Parses RSQL expression text, applies it and ordered sorts, then pages.

The string-expression overloads throw on invalid syntax. For API endpoints, prefer parsing with RsqlParser.TryParse or RsqlQueryFilter first so syntax diagnostics can be returned as validation errors.

Documentation

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.3 149 6/16/2026
1.0.2 146 5/23/2026
1.0.1 98 5/18/2026
1.0.0 154 5/10/2026
0.3.0-preview.1 113 5/6/2026
0.2.0-preview.1 126 5/5/2026
0.1.0-preview.1 47 5/5/2026

Maintenance release aligning the RsqlParserNet package family at 1.0.3 and adding a dedicated package README.