From 9399b871b1c5c6efc891010dbd4b190fa9c969c6 Mon Sep 17 00:00:00 2001 From: Dimitar Georgiev Dimitrov Date: Wed, 6 Aug 2025 16:25:59 +0300 Subject: [PATCH 1/2] Include support for .NET 8 --- Infragistics.QueryBuilder.Executor.csproj | 2 +- ReadMe.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Infragistics.QueryBuilder.Executor.csproj b/Infragistics.QueryBuilder.Executor.csproj index 68f937c..d5bae58 100644 --- a/Infragistics.QueryBuilder.Executor.csproj +++ b/Infragistics.QueryBuilder.Executor.csproj @@ -1,7 +1,7 @@  - net9.0 + net8.0;net9.0 enable enable Infragistics.QueryBuilder.Executor diff --git a/ReadMe.md b/ReadMe.md index d01ce13..3793480 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1,6 +1,6 @@ # Infragistics.QueryBuilder.Executor -A .NET 9 library for dynamic, strongly-typed query building and execution over Entity Framework Core data sources. Supports advanced filtering, projection, and SQL generation. +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. [![NuGet](https://img.shields.io/nuget/v/Infragistics.QueryBuilder.Executor.svg)](https://www.nuget.org/packages/Infragistics.QueryBuilder.Executor/) @@ -61,9 +61,10 @@ In your `Startup.cs` or Program configuration: ## Dependencies -- .NET 9 +- .NET 8 or .NET 9 - Microsoft.EntityFrameworkCore - AutoMapper +- builder.Services.AddControllers().AddNewtonsoftJson(o => o.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore) for working SwaggerUI --- From 1c335c68bd60fa4cd5e7c9a946fb0d61a8af420d Mon Sep 17 00:00:00 2001 From: Dimitar Georgiev Dimitrov Date: Thu, 18 Sep 2025 14:54:36 +0300 Subject: [PATCH 2/2] get correct entity name in response --- Services/QueryBuilderService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/QueryBuilderService.cs b/Services/QueryBuilderService.cs index 6cdabdc..3569ad1 100644 --- a/Services/QueryBuilderService.cs +++ b/Services/QueryBuilderService.cs @@ -34,7 +34,7 @@ public Dictionary RunQuery(Query query) ?? throw new InvalidOperationException($"DbSet '{propInfo.Name}' does not support AsQueryable()."); var propRes = QueryExecutor.InvokeRunMethod([dbGenericType, dtoGenericType], [queryable, query, mapper]); - return new Dictionary { { propInfo.Name.ToLowerInvariant(), propRes } }; + return new Dictionary { { query.Entity, propRes } }; } } }