{"id":23163506,"url":"https://github.com/alexanderkrutov/datatables.queryable","last_synced_at":"2025-07-04T07:35:21.128Z","repository":{"id":37925764,"uuid":"74166231","full_name":"AlexanderKrutov/DataTables.Queryable","owner":"AlexanderKrutov","description":".Net library for clever processing of requests from datatables.net jQuery plugin on the server side (ASP.NET, Nancy or any other web server).","archived":false,"fork":false,"pushed_at":"2022-06-22T17:49:59.000Z","size":5916,"stargazers_count":52,"open_issues_count":9,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-02T08:09:51.918Z","etag":null,"topics":["database-access","datatables","expression-tree","jquery-datatables","jquery-datatables-plugin","query-builder"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexanderKrutov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-18T21:05:18.000Z","updated_at":"2025-04-29T17:02:56.000Z","dependencies_parsed_at":"2022-08-25T22:20:41.498Z","dependency_job_id":null,"html_url":"https://github.com/AlexanderKrutov/DataTables.Queryable","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/AlexanderKrutov/DataTables.Queryable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderKrutov%2FDataTables.Queryable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderKrutov%2FDataTables.Queryable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderKrutov%2FDataTables.Queryable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderKrutov%2FDataTables.Queryable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderKrutov","download_url":"https://codeload.github.com/AlexanderKrutov/DataTables.Queryable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderKrutov%2FDataTables.Queryable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263469419,"owners_count":23471519,"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":["database-access","datatables","expression-tree","jquery-datatables","jquery-datatables-plugin","query-builder"],"created_at":"2024-12-18T00:18:27.189Z","updated_at":"2025-07-04T07:35:21.100Z","avatar_url":"https://github.com/AlexanderKrutov.png","language":"C#","readme":"# DataTables.Queryable\n\n## What is it?\nIt is a .Net library for clever processing of requests from [datatables.net](https://www.datatables.net/) jQuery plugin on the server side (ASP.NET, [Nancy](https://github.com/NancyFx/Nancy/) or any other web server).\n\nThe library significantly [reduces boilerplate code](https://github.com/AlexanderKrutov/DataTables.Queryable/wiki/Boilerplate-code-reducing) and helps to avoid writing same logic of parsing requests for different model types.\n\n## Installation [![NuGet Status](http://img.shields.io/nuget/v/DataTables.Queryable.svg?style=flat)](https://www.nuget.org/packages/DataTables.Queryable/)\n```\nPM\u003e Install-Package DataTables.Queryable\n```\n\n## How to use it?\n```csharp\n// ASP.NET action handler inside a controller:\npublic JsonResult DataTablesRequestAction()\n{\n    // make a DataTablesRequest object from the incoming Http query string\n    var request = new DataTablesRequest\u003cPerson\u003e(Request.QueryString);\n    \n    using (var ctx = new DatabaseContext())\n    {\n        // take persons from database, apply the DataTablesRequest filter and paginate\n        var persons = ctx.Persons.ToPagedList(request);\n     \n        // push back a result in JSON form applicable for datatables.net\n        return JsonDataTable(persons);\n    }\n}\n```\nNeed more info? [Welcome to the wiki](https://github.com/AlexanderKrutov/DataTables.Queryable/wiki/).\n\n## How it works?\n1. DataTables.Queryable parses data from an incoming Http request and extracts related parameters (search text, columns ordering info, page number and number of records per page and etc.);\n1. Dynamically builds an expression tree from the request parameters and information about model type `T` using reflection;\n1. Filters provided `IQueryable\u003cT\u003e` with the expression tree.\n1. Returns query result as a `PagedList\u003cT\u003e` instance (collection of items that represents a single page of extracted data).\n\nTake a closer look [what happens inside](https://github.com/AlexanderKrutov/DataTables.Queryable/wiki/How-it-works/).\n\n## Features\n* Global search, individual column search, ordering by one or many columns, pagination\n* Custom request parameters\n* Custom search predicates\n* Supports nested properties\n* Lazy data loading from provided `IQueryable\u003cT\u003e` (only filtered records will be extracted)\n* Compatible with [Entity Framework](https://github.com/aspnet/EntityFramework6)\n\n## License\nDataTables.Queryable is licensed under [MIT license](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderkrutov%2Fdatatables.queryable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderkrutov%2Fdatatables.queryable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderkrutov%2Fdatatables.queryable/lists"}