Simplified opinionated model binding and mapping from jQuery DataTables into .NET typed models with support for .NET 8.0.
This is a fork from (https://github.com/ALMMa/datatables.aspnet) which is the orginal author, but no longer maintained
This library is compatible with the following stacks:
.NET 8.0
services.RegisterDataTables();
or
[ModelBinder(typeof(ModelBinder))] IDataTablesRequest model
public virtual IActionResult ListData(IDataTablesRequest model)
{
var data = _service.Users_Query(model);
var total = _service.Users_Total();
return model.GetActionResult(total, data.TotalCount, data);
}
- DataTables.AspNet.AspNetCore with support for AspNetCore, dependency injection and automatic binders
DataTables.AspNet ships with a core project called DataTables.AspNet.Core, which contains basic interfaces and core elements just the way DataTables needs.
Feel free to use it and implement your own classes, methods and extend DataTables.AspNet in your very own way.
Samples are provided on the samples folder.
If you are, check out v3 branch. It has the latest code for DataTables.AspNet, including samples and more.
For every release (even unstable ones) there should be a nuget package.