Linq.Extension
1.0.0.4
See the version list below for details.
dotnet add package Linq.Extension --version 1.0.0.4
NuGet\Install-Package Linq.Extension -Version 1.0.0.4
<PackageReference Include="Linq.Extension" Version="1.0.0.4" />
paket add Linq.Extension --version 1.0.0.4
#r "nuget: Linq.Extension, 1.0.0.4"
// Install Linq.Extension as a Cake Addin #addin nuget:?package=Linq.Extension&version=1.0.0.4 // Install Linq.Extension as a Cake Tool #tool nuget:?package=Linq.Extension&version=1.0.0.4
/////////////////////////////////////// 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 | Versions 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. |
-
.NETCoreApp 2.1
- morelinq (>= 3.3.2)
- Newtonsoft.Json (>= 12.0.3)
-
.NETCoreApp 3.1
- morelinq (>= 3.3.2)
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.5
- morelinq (>= 3.3.2)
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.5.1
- morelinq (>= 3.3.2)
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.5.2
- morelinq (>= 3.3.2)
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.6.2
- morelinq (>= 3.3.2)
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.7.2
- morelinq (>= 3.3.2)
- Newtonsoft.Json (>= 12.0.3)
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.8.1 | 140 | 6/27/2024 |
3.8.0 | 92 | 6/26/2024 |
3.7.0.1 | 96 | 6/25/2024 |
3.7.0 | 93 | 6/25/2024 |
3.6.5 | 97 | 6/20/2024 |
3.6.4 | 111 | 6/16/2024 |
3.6.3 | 100 | 6/16/2024 |
3.6.2 | 110 | 6/16/2024 |
3.6.1 | 112 | 6/16/2024 |
3.6.0 | 112 | 6/16/2024 |
3.5.1 | 120 | 6/16/2024 |
3.5.0 | 102 | 6/15/2024 |
3.4.0 | 106 | 6/12/2024 |
3.3.1 | 99 | 6/12/2024 |
3.3.0 | 126 | 6/12/2024 |
3.2.0 | 276 | 7/12/2023 |
3.1.0 | 149 | 6/27/2023 |
3.0.2 | 152 | 6/24/2023 |
3.0.1 | 154 | 6/10/2023 |
3.0.0 | 244 | 3/5/2023 |
2.0.1.2 | 321 | 2/26/2023 |
2.0.1.1 | 330 | 2/23/2023 |
2.0.1 | 276 | 2/23/2023 |
2.0.0.1 | 300 | 1/19/2023 |
2.0.0 | 289 | 1/19/2023 |
1.0.0.9 | 333 | 11/27/2022 |
1.0.0.8 | 334 | 11/27/2022 |
1.0.0.7 | 505 | 10/4/2020 |
1.0.0.5 | 764 | 7/30/2020 |
1.0.0.4 | 455 | 7/29/2020 |
1.0.0.3 | 495 | 7/29/2020 |
1.0.0.2 | 458 | 7/28/2020 |
1.0.0.1 | 461 | 7/28/2020 |
1.0.0 | 480 | 7/27/2020 |
fixed bug in dynamic select.