RsqlParserNet.EntityFrameworkCore
1.0.3
dotnet add package RsqlParserNet.EntityFrameworkCore --version 1.0.3
NuGet\Install-Package RsqlParserNet.EntityFrameworkCore -Version 1.0.3
<PackageReference Include="RsqlParserNet.EntityFrameworkCore" Version="1.0.3" />
<PackageVersion Include="RsqlParserNet.EntityFrameworkCore" Version="1.0.3" />
<PackageReference Include="RsqlParserNet.EntityFrameworkCore" />
paket add RsqlParserNet.EntityFrameworkCore --version 1.0.3
#r "nuget: RsqlParserNet.EntityFrameworkCore, 1.0.3"
#:package RsqlParserNet.EntityFrameworkCore@1.0.3
#addin nuget:?package=RsqlParserNet.EntityFrameworkCore&version=1.0.3
#tool nuget:?package=RsqlParserNet.EntityFrameworkCore&version=1.0.3
RsqlParserNet.EntityFrameworkCore
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
- EF Core helpers: docs/entity-framework-core.md
- Main repository: RsqlParserNet
| Product | Versions 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. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 10.0.0)
- RsqlParserNet.Linq (>= 1.0.3)
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.