FlexQuery.NET.EntityFrameworkCore
4.0.0-rc.3
See the version list below for details.
dotnet add package FlexQuery.NET.EntityFrameworkCore --version 4.0.0-rc.3
NuGet\Install-Package FlexQuery.NET.EntityFrameworkCore -Version 4.0.0-rc.3
<PackageReference Include="FlexQuery.NET.EntityFrameworkCore" Version="4.0.0-rc.3" />
<PackageVersion Include="FlexQuery.NET.EntityFrameworkCore" Version="4.0.0-rc.3" />
<PackageReference Include="FlexQuery.NET.EntityFrameworkCore" />
paket add FlexQuery.NET.EntityFrameworkCore --version 4.0.0-rc.3
#r "nuget: FlexQuery.NET.EntityFrameworkCore, 4.0.0-rc.3"
#:package FlexQuery.NET.EntityFrameworkCore@4.0.0-rc.3
#addin nuget:?package=FlexQuery.NET.EntityFrameworkCore&version=4.0.0-rc.3&prerelease
#tool nuget:?package=FlexQuery.NET.EntityFrameworkCore&version=4.0.0-rc.3&prerelease
FlexQuery.NET.EntityFrameworkCore
Async execution, filtered includes, and typed DTO projection for EF Core.
When to Use This Package
Install this package when your data access layer uses Entity Framework Core's DbContext. It enables the FlexQueryAsync extension methods that execute the full query pipeline — parse, validate, filter, sort, page, project — in a single async call against your DbSet<T>.
Installation
dotnet add package FlexQuery.NET.EntityFrameworkCore
Registration
Call once at startup, before any query executes:
using FlexQuery.NET.EntityFrameworkCore;
FlexQueryEFCore.Setup(); // registers EF Core-specific operators
// Optional: global EF Core defaults (immutable after the first call)
FlexQueryEFCore.Configure(options =>
{
options.UseNoTracking = true;
});
Quick Start
using FlexQuery.NET.Models;
[HttpGet("users")]
public async Task<IActionResult> GetUsers(
[FromQuery] FlexQueryParameters parameters,
CancellationToken cancellationToken)
{
var result = await _context.Users.FlexQueryAsync(parameters, options =>
{
options.AllowedFields = new HashSet<string> { "Id", "Name", "Email", "Status" };
options.StrictFieldValidation = true;
}, cancellationToken: cancellationToken);
return Ok(result);
}
Features
FlexQueryAsync— Unified parse-validate-execute pipeline with configurableEfCoreQueryOptions- Typed DTO Projection —
FlexQueryAsync<TEntity, TResponse>returns strongly-typed results, with convention-based mapping (CreateMap,ForMember,ForNavigation) - Includes - Translate the
QueryOptions.Includesrelationship tree into EF CoreInclude/ThenIncludechains, each optionally filtered by an inlineWhereclause, viaApplyIncludes<T>() - Projection — Nested, Flat, and FlatMixed projection modes
- Execution Options —
UseNoTrackingfor read-only queries (enabled by default) - SQL Preview —
ToSqlPreview()to inspect the generated SQL without executing - Diagnostics — Pass an
IFlexQueryExecutionListenervia the options to observe pipeline stages - EF Core Operators —
UseEfCoreOperators()to register theLIKEoperator handler for EF Core translation
Related Packages
- FlexQuery.NET — Core query engine
- FlexQuery.NET.AspNetCore — ASP.NET Core integration
- FlexQuery.NET.Dapper — Alternative provider for Dapper
Documentation
| Product | Versions 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. |
-
net10.0
- FlexQuery.NET (>= 4.0.0-rc.3)
- Microsoft.EntityFrameworkCore (>= 10.0.0)
-
net6.0
- FlexQuery.NET (>= 4.0.0-rc.3)
- Microsoft.EntityFrameworkCore (>= 6.0.36)
-
net8.0
- FlexQuery.NET (>= 4.0.0-rc.3)
- Microsoft.EntityFrameworkCore (>= 8.0.13)
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 |
|---|---|---|
| 4.0.0 | 91 | 9/23/2026 |
| 4.0.0-rc.3 | 45 | 9/22/2026 |
| 4.0.0-rc.2 | 70 | 9/17/2026 |
| 4.0.0-rc.1 | 63 | 9/10/2026 |
| 4.0.0-preview.3 | 77 | 7/18/2026 |
| 4.0.0-preview.2 | 71 | 7/14/2026 |
| 4.0.0-preview.1 | 75 | 7/12/2026 |
| 4.0.0-beta1.0 | 67 | 9/8/2026 |
| 3.1.1 | 1,138 | 7/4/2026 |
| 3.1.0 | 152 | 6/26/2026 |
| 3.0.6 | 152 | 6/24/2026 |
| 3.0.5 | 156 | 6/24/2026 |
| 3.0.4 | 147 | 6/23/2026 |
| 3.0.3 | 152 | 6/23/2026 |
| 3.0.2 | 157 | 6/22/2026 |
| 3.0.1 | 156 | 6/22/2026 |
- test(dapper): pass explicit cancellation tokens through FlexQueryAsync overloads
- feat(dapper): propagate cancellation through CommandDefinition and introduce DapperQueryContext
- refactor(efcore): guard nullable select fields and filter duplicate navigation includes
- refactor(core): guard nullable sort field in query builder and cursor serialization