Skip to content

Microsoft AspNet bindings and automatic parsing for jQuery DataTables along with extension methods to help on data queries.

License

Notifications You must be signed in to change notification settings

drgrieve/datatables.aspnet

 
 

Repository files navigation

Datatables.AspNet

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

Compatibility

This library is compatible with the following stacks:

  • .NET 8.0

Basic usage

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);
}

Standard NuGet packages

Write your own code!

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

Samples are provided on the samples folder.

Eager for some new code?

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.

About

Microsoft AspNet bindings and automatic parsing for jQuery DataTables along with extension methods to help on data queries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%