Infragistics.QueryBuilder.Executor
1.0.1
Prefix Reserved
dotnet add package Infragistics.QueryBuilder.Executor --version 1.0.1
NuGet\Install-Package Infragistics.QueryBuilder.Executor -Version 1.0.1
<PackageReference Include="Infragistics.QueryBuilder.Executor" Version="1.0.1" />
<PackageVersion Include="Infragistics.QueryBuilder.Executor" Version="1.0.1" />
<PackageReference Include="Infragistics.QueryBuilder.Executor" />
paket add Infragistics.QueryBuilder.Executor --version 1.0.1
#r "nuget: Infragistics.QueryBuilder.Executor, 1.0.1"
#:package Infragistics.QueryBuilder.Executor@1.0.1
#addin nuget:?package=Infragistics.QueryBuilder.Executor&version=1.0.1
#tool nuget:?package=Infragistics.QueryBuilder.Executor&version=1.0.1
Infragistics.QueryBuilder.Executor
A .NET 8, .NET 9 library for dynamic, strongly-typed query building and execution over Entity Framework Core data sources. Supports advanced filtering, projection, and SQL generation.
Installation
Install via NuGet Package Manager:
dotnet add package Infragistics.QueryBuilder.Executor
Features
- Dynamic Query Execution: Compose and execute queries at runtime using a flexible object model.
- Advanced Filtering: Nested filters, logical operators (AND/OR), and rich condition support.
- Projection: Select specific fields or project to DTOs.
- SQL Generation: Generate SQL from the query model for diagnostics or analysis.
- ASP.NET Core Integration: Easily expose query endpoints.
Getting Started
1. Register the QueryBuilder Service
In your Startup.cs or Program configuration:
services.AddQueryBuilder<MyDbContext, MyResultDto>();
2. Expose a Query Endpoint
app.UseEndpoints(endpoints => { endpoints.UseQueryBuilder<MyDbContext, MyResultDto>("/api/query"); });
3. Example Query Payload
{ "Entity": "Users", "ReturnFields": ["Id", "Name"], "Operator": "And", "FilteringOperands": [ { "FieldName": "IsActive", "Condition": { "Name": "equals" }, "SearchVal": true } ] }
4. Generate SQL (Optional)
var sql = SqlGenerator.GenerateSql(query);
Query Model
- Query: Describes the entity, fields, logical operator, and filters.
- QueryFilter: Represents a filter or group of filters.
- QueryFilterCondition: Specifies the comparison type (e.g., equals, contains).
Dependencies
- .NET 8 or .NET 9
- Microsoft.EntityFrameworkCore
- AutoMapper
- builder.Services.AddControllers().AddNewtonsoftJson(o ⇒ o.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore) for working SwaggerUI
License
MIT.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 is compatible. 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 was computed. 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. |
-
net8.0
- AutoMapper (>= 14.0.0)
- Microsoft.EntityFrameworkCore (>= 9.0.4)
- Swashbuckle.AspNetCore.SwaggerGen (>= 8.1.1)
-
net9.0
- AutoMapper (>= 14.0.0)
- Microsoft.EntityFrameworkCore (>= 9.0.4)
- Swashbuckle.AspNetCore.SwaggerGen (>= 8.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 |
|---|---|---|
| 1.0.1 | 98 | 12/12/2025 |
| 1.0.0 | 95 | 12/12/2025 |
| 0.1.1-prerelease.5 | 253 | 11/12/2025 |
| 0.1.1-prerelease.2 | 164 | 9/3/2025 |
| 0.1.1-prerelease.1 | 142 | 9/3/2025 |
| 0.1.0-prerelease0002 | 205 | 7/3/2025 |
| 0.1.0-prerelease0001 | 171 | 7/2/2025 |
| 0.1.0-prerelease.5 | 132 | 7/3/2025 |
| 0.1.0-prerelease.4 | 138 | 7/3/2025 |