EFDatatable 1.0.3
Please download DatatableJS.Net package
See the version list below for details.
dotnet add package EFDatatable --version 1.0.3
NuGet\Install-Package EFDatatable -Version 1.0.3
<PackageReference Include="EFDatatable" Version="1.0.3" />
<PackageVersion Include="EFDatatable" Version="1.0.3" />
<PackageReference Include="EFDatatable" />
paket add EFDatatable --version 1.0.3
#r "nuget: EFDatatable, 1.0.3"
#addin nuget:?package=EFDatatable&version=1.0.3
#tool nuget:?package=EFDatatable&version=1.0.3
EFDatatable
What is EFDatatable?
EFDatatable is a helper to create a grid with Jquery Datatable and provides an extension to retrive data generically from Entity Framework context. It possible to use many datatable.js features with Html helper. It gives serverside or client side options.
@(Html.EF().GridFor<Person>()
.Name("PersonGrid")
.Searching(true)
.Class("table table-striped")
.Columns(cols =>
{
cols.Field(a => a.Id).Visible(true).Orderable(false).Searchable(true);
cols.Field(a => a.Name).Title("First Name");
})
.Filters(filter =>
{
filter.Add(a => a.Id).GreaterThanOrEqual(1);
})
.URL(Url.Action("GetDataResult"), "POST")
.ServerSide(true)
.Render()
)
With "ToDataResult(request)" extension function, data can get with server side pagination very simply.
public JsonResult GetDataResult(DataRequest request)
{
DataResult result = context.People.ToDataResult(request);
return Json(result);
}
Where can I get it?
First, install NuGet. Then, install EFDatatable from the package manager console:
PM> Install-Package EFDatatable
Then add datatables.net Javascript and CSS files or links to your project.
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 was computed. |
-
- Microsoft.Web.Infrastructure (>= 1.0.0)
- Newtonsoft.Json (>= 6.0.1)
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 | |
---|---|---|---|
2.0.0 | 830 | 1/3/2021 | |
1.4.0 | 677 | 12/3/2020 | |
1.3.3 | 768 | 7/20/2020 | |
1.3.2 | 648 | 7/14/2020 | |
1.3.1 | 706 | 7/13/2020 | |
1.3.0 | 682 | 7/10/2020 | |
1.2.2 | 667 | 7/1/2020 | |
1.2.1 | 782 | 2/12/2020 | |
1.2.0 | 766 | 2/6/2020 | |
1.1.4 | 691 | 2/3/2020 | |
1.1.3 | 889 | 1/25/2020 | |
1.1.1 | 795 | 1/18/2020 | |
1.1.0 | 780 | 1/13/2020 | |
1.0.3 | 744 | 1/10/2020 | |
1.0.2 | 771 | 9/13/2019 | |
1.0.0 | 1,074 | 6/9/2019 |
Mvc framework version updated