FlexQuery.NET.AspNetCore
3.1.1
See the version list below for details.
dotnet add package FlexQuery.NET.AspNetCore --version 3.1.1
NuGet\Install-Package FlexQuery.NET.AspNetCore -Version 3.1.1
<PackageReference Include="FlexQuery.NET.AspNetCore" Version="3.1.1" />
<PackageVersion Include="FlexQuery.NET.AspNetCore" Version="3.1.1" />
<PackageReference Include="FlexQuery.NET.AspNetCore" />
paket add FlexQuery.NET.AspNetCore --version 3.1.1
#r "nuget: FlexQuery.NET.AspNetCore, 3.1.1"
#:package FlexQuery.NET.AspNetCore@3.1.1
#addin nuget:?package=FlexQuery.NET.AspNetCore&version=3.1.1
#tool nuget:?package=FlexQuery.NET.AspNetCore&version=3.1.1
FlexQuery.NET.AspNetCore
ASP.NET Core integration with declarative field-access security.
When to Use This Package
Install this package when you want to use [FieldAccess] attributes on your API controllers to declare per-endpoint security rules, or when you need automatic model binding for FlexQueryParameters.
Installation
dotnet add package FlexQuery.NET.AspNetCore
Registration
builder.Services.AddFlexQuery();
builder.Services.AddFlexQuerySecurity();
// Or combine with MVC:
builder.Services.AddControllers()
.AddFlexQuerySecurity();
Quick Start
[ApiController]
[Route("api/[controller]")]
public class UsersController : ControllerBase
{
[HttpGet]
[FieldAccess(AllowedFields = new[] { "Id", "Name", "Email", "Status" },
MaxFieldDepth = 2)]
public async Task<IActionResult> GetUsers([FromQuery] FlexQueryParameters parameters)
{
// FieldAccess settings are automatically resolved from HttpContext.
var result = await _context.Users.FlexQueryAsync(parameters, HttpContext);
return Ok(result);
}
}
Features
[FieldAccess]Attribute — Declare Allowed, Blocked, Filterable, Sortable, Selectable, Groupable, Aggregatable fields per-endpointFieldAccessFilter— Action filter that applies attribute settings toQueryExecutionOptions- **
Automatic Security Resolution** — Extension method acceptingHttpContext` for automatic options resolution - Swagger Integration — Works with Swagger/Swashbuckle for API documentation
Related Packages
- FlexQuery.NET — Core query engine
- FlexQuery.NET.EntityFrameworkCore — EF Core execution
- FlexQuery.NET.Dapper — Dapper execution
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 (>= 3.1.1)
- FlexQuery.NET.EntityFrameworkCore (>= 3.1.1)
-
net6.0
- FlexQuery.NET (>= 3.1.1)
- FlexQuery.NET.EntityFrameworkCore (>= 3.1.1)
-
net8.0
- FlexQuery.NET (>= 3.1.1)
- FlexQuery.NET.EntityFrameworkCore (>= 3.1.1)
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 | 0 | 7/18/2026 |
| 4.0.0-preview.2 | 36 | 7/14/2026 |
| 4.0.0-preview.1 | 49 | 7/12/2026 |
| 3.1.1 | 99 | 7/4/2026 |
| 3.1.0 | 107 | 6/26/2026 |
| 3.0.6 | 102 | 6/24/2026 |
| 3.0.5 | 102 | 6/24/2026 |
| 3.0.4 | 101 | 6/23/2026 |
| 3.0.3 | 106 | 6/23/2026 |
| 3.0.2 | 110 | 6/22/2026 |
| 3.0.1 | 111 | 6/22/2026 |
| 2.5.0 | 111 | 5/13/2026 |
| 2.4.0 | 109 | 5/10/2026 |
| 2.3.1 | 112 | 5/8/2026 |
| 2.3.0 | 103 | 5/7/2026 |
| 2.2.0 | 122 | 5/6/2026 |
| 2.1.0 | 101 | 5/6/2026 |
| 2.0.1 | 96 | 5/6/2026 |
| 1.7.2 | 103 | 5/4/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