Kendo.DynamicLinqCore 1.0.4

Server side paging, sorting and filtering via Dynamic Linq for .Net Core 1.x

There is a newer version of this package available.
See the version list below for details.
Install-Package Kendo.DynamicLinqCore -Version 1.0.4
dotnet add package Kendo.DynamicLinqCore --version 1.0.4
<PackageReference Include="Kendo.DynamicLinqCore" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Kendo.DynamicLinqCore --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Kendo.DynamicLinqCore, 1.0.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Kendo.DynamicLinqCore as a Cake Addin
#addin nuget:?package=Kendo.DynamicLinqCore&version=1.0.4

// Install Kendo.DynamicLinqCore as a Cake Tool
#tool nuget:?package=Kendo.DynamicLinqCore&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

#Kendo.DynamicLinqCore

Note

Kendo.DynamicLinqCore is referred to Kendo.DynamicLinq by kendo-labs.
Related notes can refer it.

Description

Kendo.DynamicLinqCore implements server paging, filtering, sorting and aggregating via Dynamic Linq for Net Core.

Build NuGet package

  1. Open command line console
  2. Switch to project root directory.(src\Kendo.DynamicLinqCore)
  3. Run "dotnet restore"
  4. Run "dotnet pack --configuration release"

Usage

  1. Add the Kendo.DynamicLinqCore NuGet package to your project.

  2. Configure your Kendo DataSource to send its options as JSON.

     parameterMap: function(options, type) {
         return JSON.stringify(options);
     }
    
  3. Configure the schema of the DataSource.

     schema: {
         data: "Data",
         total: "Total",
         aggregates: "Aggregates",
         groups: "Group"
     }
    
  4. Import the Kendo.DynamicLinqCore namespace.

  5. Use the ToDataSourceResult extension method to apply paging, sorting and filtering.

     [WebMethod]
     public static DataSourceResult Products(int take, int skip, IEnumerable<Sort> sort, Filter filter, IEnumerable<Aggregator> aggregates, IEnumerable<Sort> group)
     {
         using (var northwind = new Northwind())
         {
             return northwind.Products
                 .OrderBy(p => p.ProductID) // EF requires ordering for paging                    
                 .Select(p => new ProductViewModel // Use a view model to avoid serializing internal Entity Framework properties as JSON
                 {
                     ProductID = p.ProductID,
                     ProductName = p.ProductName,
                     UnitPrice = p.UnitPrice,
                     UnitsInStock = p.UnitsInStock,
                     Discontinued = p.Discontinued
                 })
              .ToDataSourceResult(take, skip, sort, filter, aggregates, group);
         }
     }
    

Examples

The following examples use Kendo.DynamicLinq(Not Kendo.DynamicLinqCore, but similar) and you can consult.

#Kendo.DynamicLinqCore

Note

Kendo.DynamicLinqCore is referred to Kendo.DynamicLinq by kendo-labs.
Related notes can refer it.

Description

Kendo.DynamicLinqCore implements server paging, filtering, sorting and aggregating via Dynamic Linq for Net Core.

Build NuGet package

  1. Open command line console
  2. Switch to project root directory.(src\Kendo.DynamicLinqCore)
  3. Run "dotnet restore"
  4. Run "dotnet pack --configuration release"

Usage

  1. Add the Kendo.DynamicLinqCore NuGet package to your project.

  2. Configure your Kendo DataSource to send its options as JSON.

     parameterMap: function(options, type) {
         return JSON.stringify(options);
     }
    
  3. Configure the schema of the DataSource.

     schema: {
         data: "Data",
         total: "Total",
         aggregates: "Aggregates",
         groups: "Group"
     }
    
  4. Import the Kendo.DynamicLinqCore namespace.

  5. Use the ToDataSourceResult extension method to apply paging, sorting and filtering.

     [WebMethod]
     public static DataSourceResult Products(int take, int skip, IEnumerable<Sort> sort, Filter filter, IEnumerable<Aggregator> aggregates, IEnumerable<Sort> group)
     {
         using (var northwind = new Northwind())
         {
             return northwind.Products
                 .OrderBy(p => p.ProductID) // EF requires ordering for paging                    
                 .Select(p => new ProductViewModel // Use a view model to avoid serializing internal Entity Framework properties as JSON
                 {
                     ProductID = p.ProductID,
                     ProductName = p.ProductName,
                     UnitPrice = p.UnitPrice,
                     UnitsInStock = p.UnitsInStock,
                     Discontinued = p.Discontinued
                 })
              .ToDataSourceResult(take, skip, sort, filter, aggregates, group);
         }
     }
    

Examples

The following examples use Kendo.DynamicLinq(Not Kendo.DynamicLinqCore, but similar) and you can consult.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Kendo.DynamicLinqCore:

Package Downloads
Kharazmi.AspNetCore.Core
Kharazmi.AspNetCore.Core is a Lightweight and Extensible Infrastructure for provides common scenarios' solutions for ASP.NET Core applications.
Kharazmi.AspNetCore.Localization.EFCore
ASP.NET Core provides services and middleware for localizing into different languages and cultures. You can create EntityFramework core concretes as your repository.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.1.1 6,255 11/5/2020
3.1.0 24,792 2/11/2020
2.2.2 14,239 9/17/2019
2.2.0 2,544 7/5/2019
2.1.0 12,069 5/16/2019
2.0.2 574 4/12/2019
2.0.0 4,607 9/10/2018
1.0.5 1,081 1/4/2018
1.0.4 675 11/29/2017
1.0.3 1,204 2/6/2017
1.0.2 674 1/13/2017
1.0.1 859 12/30/2016
Show less