Giter Club home page Giter Club logo

datatablescoremvcentity's Introduction

DataTablesCoreMVCEntity

jQuery DataTables Demo using ASP.NET Core MVC and Entity Framework

A simple and concise demonstration of the jQuery DataTables plugin within the ASP.NET Core MVC Framework using Entity Framework Core.

A basic1 demonstration including sample data and the references one needs to build, demonstrate and integrate DataTables into your project.

Key Components

  • A ModelBinder to parse the application/x-www-form-urlencoded input from the DataTables AJAX request into the appropriate DataTablesRequest Class Model (data structure) and greatly simplify the interface between Controller (to which the AJAX requests route) and the BLL (Business Logic Layer).
  • IQueryableExtensions converting the DataTables request for paging, sorting and filtering into generic LINQ-to-SQL operations for use by Entity Framework Core. As generics, these methods will function “right out of the box” with most database table models.

Tested Framework, Tool and Bundle Versions

  • Visual Studio 2017
  • ASP.NET Core 1.1
  • ASP.NET Core 2.0
  • Entity Framework Core 1.1.5
  • Entity Framework Core 2.0.3
  • Bootstrap 3.3.7
  • jQuery 2.2.0
  • DataTables 1.10.16
  • DataTables.net 2.1.1

Background

When facing the need to use jQuery DataTables in a Core MVC project, this author found it challenging to find examples applicable to ASP.NET Core MVC 1.1 and 2.0 Framework and Entity Framework. Some examples were too out of date to compile or function in the current (1.1-2.0) MVC modeling. Others took the simple DataTables usage and morphed it into complex examples and projects that either failed to build or failed to function. Efforts were made to keep the code lean, the project and examples simple, while providing a basic1 demonstration that can be built, observed and tested with minimal effort to the reader.

1 basic demonstration refers to the paging, sorting and filtering features of the DataTables plugin.

datatablescoremvcentity's People

Contributors

peterschlosser avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.