{"id":22473478,"url":"https://github.com/linmasaki/kendo.dynamiclinqcore2","last_synced_at":"2025-03-27T16:31:21.547Z","repository":{"id":144135864,"uuid":"106444387","full_name":"linmasaki/Kendo.DynamicLinqCore2","owner":"linmasaki","description":"Kendo.DynamicLinq for .Net Core 2.0","archived":false,"fork":false,"pushed_at":"2018-01-29T06:50:44.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T20:14:53.521Z","etag":null,"topics":["kendo","kendo-ui","linq","netcore2","netcore20"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linmasaki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-10T16:43:39.000Z","updated_at":"2018-08-11T09:44:28.000Z","dependencies_parsed_at":"2023-08-12T02:05:53.287Z","dependency_job_id":null,"html_url":"https://github.com/linmasaki/Kendo.DynamicLinqCore2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linmasaki%2FKendo.DynamicLinqCore2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linmasaki%2FKendo.DynamicLinqCore2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linmasaki%2FKendo.DynamicLinqCore2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linmasaki%2FKendo.DynamicLinqCore2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linmasaki","download_url":"https://codeload.github.com/linmasaki/Kendo.DynamicLinqCore2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245882167,"owners_count":20687838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kendo","kendo-ui","linq","netcore2","netcore20"],"created_at":"2024-12-06T12:28:57.136Z","updated_at":"2025-03-27T16:31:21.524Z","avatar_url":"https://github.com/linmasaki.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kendo.DynamicLinqCore2.0\n[![Version](https://img.shields.io/nuget/vpre/Kendo.DynamicLinqCore2.svg)](https://www.nuget.org/packages/Kendo.DynamicLinqCore2)\n\n# Note\nKendo.DynamicLinqCore2 is referred to Kendo.DynamicLinq by [kendo-labs](https://github.com/kendo-labs/dlinq-helpers). \nRelated notes can refer it.\n\n## Description\nKendo.DynamicLinqCore2 implements server paging, filtering, sorting and aggregating via Dynamic Linq for .Net Core2.0.\n\n## Build NuGet Package\n1. Open command line console\n2. Switch to project root directory.(src\\Kendo.DynamicLinqCore2)\n3. Run \"dotnet restore\"\n4. Run \"dotnet pack --configuration release\" \n\n## Usage\n1. Add the Kendo.DynamicLinqCore2 NuGet package to your project.\n2. Configure your Kendo DataSource to send its options as JSON.\n\n        parameterMap: function(options, type) {\n            return JSON.stringify(options);\n        }\n3. Configure the `schema` of the DataSource.\n\n        schema: {\n            data: \"Data\",\n            total: \"Total\",\n            aggregates: \"Aggregates\",\n            groups: \"Group\"\n        }\n4. Import the Kendo.DynamicLinqCore2 namespace.\n5. Use the `ToDataSourceResult` extension method to apply paging, sorting and filtering.\n\n        [WebMethod]\n        public static DataSourceResult Products(int take, int skip, IEnumerable\u003cSort\u003e sort, Filter filter, IEnumerable\u003cAggregator\u003e aggregates, IEnumerable\u003cSort\u003e group)\n        {\n            using (var northwind = new Northwind())\n            {\n                return northwind.Products\n                    .OrderBy(p =\u003e p.ProductID) // EF requires ordering for paging                    \n                    .Select(p =\u003e new ProductViewModel // Use a view model to avoid serializing internal Entity Framework properties as JSON\n                    {\n                        ProductID = p.ProductID,\n                        ProductName = p.ProductName,\n                        UnitPrice = p.UnitPrice,\n                        UnitsInStock = p.UnitsInStock,\n                        Discontinued = p.Discontinued\n                    })\n                 .ToDataSourceResult(take, skip, sort, filter, aggregates, group);\n            }\n        }\n\n## Other Examples\nThis example has full demo with .Net Core2.0 by [Vahid Nasiri](https://github.com/VahidN).\n\n- [KendoUI.Core.Samples](https://github.com/VahidN/KendoUI.Core.Samples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinmasaki%2Fkendo.dynamiclinqcore2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinmasaki%2Fkendo.dynamiclinqcore2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinmasaki%2Fkendo.dynamiclinqcore2/lists"}