unosquare / tubular-dotnet

Tubular .NET Library

Home Page:https://unosquare.github.io/tubular/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NuGet Quality Gate Status NuGet version

Tubular DotNet

Tubular provides .NET Framework and .NET Core Library to create REST service to use with Tubular Angular Components easily with any WebApi library (ASP.NET Web API for example).

Please visit the Tubular GitHub Page to learn how quickly you can start coding. See Related projects below to discover more Tubular libraries and backend solutions.

Installation

PM> Install-Package Tubular.ServerSide

Sample

You can check out the Tubular GitHub Page to get a few examples. We still need to work on more samples and better documentation, but we feel what we have now will get you up to speed very quickly :).

The following snippet shows how to use Tubular Helper to create a basic response grid using Entity Framework and ASP.NET Web API.

 [RoutePrefix("api/users")]
 public class UsersController : ApiController
 {
     [HttpPost, Route("paged")]
     public IHttpActionResult GridData([FromBody] GridDataRequest request)
     {
         using (var context = new SampleDbContext(false)) {
             return Ok(request.CreateGridDataResponse(context.SystemUsers));
         }
     }
 }

About

Tubular .NET Library

https://unosquare.github.io/tubular/

License:MIT License


Languages

Language:C# 64.2%Language:HTML 30.1%Language:JavaScript 4.7%Language:CSS 1.0%