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 --- 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 } }; } } }