Linq.Extension 1.0.0.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package Linq.Extension --version 1.0.0.7
NuGet\Install-Package Linq.Extension -Version 1.0.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Linq.Extension" Version="1.0.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Linq.Extension --version 1.0.0.7
#r "nuget: Linq.Extension, 1.0.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Linq.Extension as a Cake Addin
#addin nuget:?package=Linq.Extension&version=1.0.0.7

// Install Linq.Extension as a Cake Tool
#tool nuget:?package=Linq.Extension&version=1.0.0.7

/////////////////////////////////////// Pagination and Search Example ////////////////////////////////////////////////////////////////////// { "pagination" : {"take": 100, "skip": 100, "sorts": [{"fieldName": "created", "direction": "desc"}, {"fieldName": "quantity", "direction": "asc"}]}, "search" : {"filters": [{ "logic": "or", "operation": "eq", "value": 3245, "fieldName": "orderId" }, { "logic": "and", "operation": "inlist", "value": "32,66,87,199", "fieldName": "customerId" }, { "logic": "and", "operation": "gte", "value": 600, "fieldName": "customerId" } ]}}

Above Json object is converted to conditionalArguments as IDictionary<string, object> conditionalArguments and passed to following query. From above dictionary first entry will be like that key = "pagination", value ={ "take": 100, "skip": 100, "sorts": [{"fieldName": "created", "direction": "desc"}, {"fieldName": "quantity", "direction": "asc"}]} value will be an object containing Json object.

var res = this._context.Hobbies .AsNoTracking() .Where(LinqDynamicExtension.DynamicWherePredicate <HobbyDataLayer.Models.Hobby>(conditionalArguments)) .Pagination(conditionalArguments) .Select(LinqDynamicExtension.DynamicSelectGeneratorAnomouysType <HobbyDataLayer.Models.Hobby>(selectionFields)) .ToList() .ToNonAnonymousList(typeof(HobbyDataLayer.Models.Hobby));

var results = (IEnumerable<HobbyDataLayer.Models.Hobby>) res;

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Framework net45 is compatible.  net451 is compatible.  net452 is compatible.  net46 was computed.  net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.2.0 236 7/12/2023
3.1.0 124 6/27/2023
3.0.2 139 6/24/2023
3.0.1 134 6/10/2023
3.0.0 220 3/5/2023
2.0.1.2 295 2/26/2023
2.0.1.1 308 2/23/2023
2.0.1 247 2/23/2023
2.0.0.1 276 1/19/2023
2.0.0 266 1/19/2023
1.0.0.9 305 11/27/2022
1.0.0.8 298 11/27/2022
1.0.0.7 478 10/4/2020
1.0.0.5 721 7/30/2020
1.0.0.4 428 7/29/2020
1.0.0.3 469 7/29/2020
1.0.0.2 432 7/28/2020
1.0.0.1 421 7/28/2020
1.0.0 468 7/27/2020

Added Nesting Predicates with parenthesis for same field name. Grouped same field name expressions into one parenthesis and apply the logic of first filter of sequence of same field with other fields.