FlexQuery.NET.Dapper
3.1.1
See the version list below for details.
dotnet add package FlexQuery.NET.Dapper --version 3.1.1
NuGet\Install-Package FlexQuery.NET.Dapper -Version 3.1.1
<PackageReference Include="FlexQuery.NET.Dapper" Version="3.1.1" />
<PackageVersion Include="FlexQuery.NET.Dapper" Version="3.1.1" />
<PackageReference Include="FlexQuery.NET.Dapper" />
paket add FlexQuery.NET.Dapper --version 3.1.1
#r "nuget: FlexQuery.NET.Dapper, 3.1.1"
#:package FlexQuery.NET.Dapper@3.1.1
#addin nuget:?package=FlexQuery.NET.Dapper&version=3.1.1
#tool nuget:?package=FlexQuery.NET.Dapper&version=3.1.1
FlexQuery.NET.Dapper
SQL generation and async execution for Dapper.
When to Use This Package
Install this package when your application uses Dapper instead of Entity Framework Core. FlexQuery.NET.Dapper translates QueryOptions into parameterized, dialect-aware SQL and executes it directly via DbConnection.
Installation
dotnet add package FlexQuery.NET.Dapper
Registration
using FlexQuery.NET.Dapper;
using FlexQuery.NET.Dapper.Dialects;
builder.Services.AddFlexQueryDapper(options =>
{
options.UseSqlServer();
});
Or configure options per-query:
options.Dialect = new PostgreSqlDialect();
options.CommandTimeoutSeconds = 60;
Quick Start
using FlexQuery.NET.Dapper;
using FlexQuery.NET.Dapper.Dialects;
[HttpGet("users")]
public async Task<IActionResult> GetUsers([FromQuery] FlexQueryParameters parameters)
{
await using var connection = new SqlConnection(connectionString);
var result = await connection.FlexQueryAsync<User>(parameters, options =>
{
// Or register the dialect globally using AddFlexQueryDapper()
options.Dialect = new SqlServerDialect();
options.AllowedFields = new HashSet<string> { "Id", "Name", "Email" };
});
return Ok(result);
}
Features
- SQL Generation —
SqlTranslatorproduces parameterized, injection-safe SQL - Dialect Support — SQL Server, PostgreSQL, MySQL, SQLite via
ISqlDialect - Flat Projection — Deep select paths (e.g.,
Orders.Total) becomeLEFT JOINwith flattened aliases - Optional Auto-Dialect Detection —
ISqlDialectResolvercan detect dialect from theDbConnection - Mapping Registry — Custom entity-to-table mapping via
IMappingRegistry - Diagnostics — Pass
Action<FlexQueryExecutionConfig>to observe pipeline stages
Known Limitations
- Filtered includes (EF Core navigation property expansion) are not supported
- Navigation property projection requires flat projection mode
- Some aggregate functions may vary by dialect
Related Packages
- FlexQuery.NET — Core query engine
- FlexQuery.NET.AspNetCore — ASP.NET Core integration
- FlexQuery.NET.EntityFrameworkCore — Alternative provider for EF Core
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
- Dapper (>= 2.1.72)
- FlexQuery.NET (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Primitives (>= 10.0.0)
-
net6.0
- Dapper (>= 2.1.72)
- FlexQuery.NET (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Primitives (>= 6.0.0)
-
net8.0
- Dapper (>= 2.1.72)
- FlexQuery.NET (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Primitives (>= 8.0.0)
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-preview.3 | 43 | 7/18/2026 |
| 4.0.0-preview.2 | 44 | 7/14/2026 |
| 4.0.0-preview.1 | 47 | 7/12/2026 |
| 3.1.1 | 101 | 7/4/2026 |
| 3.1.0 | 109 | 6/26/2026 |
| 3.0.6 | 103 | 6/24/2026 |
| 3.0.5 | 106 | 6/24/2026 |
| 3.0.4 | 107 | 6/23/2026 |
| 3.0.3 | 100 | 6/23/2026 |
| 3.0.2 | 104 | 6/22/2026 |
| 3.0.1 | 108 | 6/22/2026 |
- fix: implement stability fixes for pipeline ordering, validation, Dapper case-insensitive and filtered includes
- fix: auto-generate ORDER BY for paging without sort, add tests and docs
- fix: resolve code analysis warnings and add XML documentation
- perf: cache IsScalarType results and IncludeBuilder MethodInfo lookups
- refactor: remove old projection engine and simplify caching
- remove yml
- Add Azure deployment workflow
- Add or update the Azure App Service build and deployment workflow config