Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unosquare/tubular-dotnet
Tubular .NET Library
https://github.com/unosquare/tubular-dotnet
dotnet forms grid webapi
Last synced: 14 days ago
JSON representation
Tubular .NET Library
- Host: GitHub
- URL: https://github.com/unosquare/tubular-dotnet
- Owner: unosquare
- License: mit
- Created: 2017-05-02T16:29:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T21:17:02.000Z (about 1 month ago)
- Last Synced: 2024-10-18T21:03:02.049Z (about 1 month ago)
- Topics: dotnet, forms, grid, webapi
- Language: C#
- Homepage: https://unosquare.github.io/tubular/
- Size: 1.08 MB
- Stars: 17
- Watchers: 23
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![NuGet](https://img.shields.io/nuget/dt/Tubular.ServerSide.svg)](https://www.nuget.org/packages/Tubular.ServerSide/)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=unosquare_tubular-dotnet&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=unosquare_tubular-dotnet)
[![NuGet version](https://badge.fury.io/nu/Tubular.ServerSide.svg)](https://badge.fury.io/nu/Tubular.ServerSide)![Tubular DotNet](http://unosquare.github.io/tubular-angular/assets/tubular.png)
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](http://unosquare.github.io/tubular) to learn how quickly you can start coding. See [Related projects](#related-projects) below to discover more Tubular libraries and backend solutions.
## Installation
```
PM> Install-Package Tubular.ServerSide
```## Sample
The following snippet shows how to use Tubular Helper to create a basic response grid using Entity Framework and ASP.NET Web API.
```csharp
[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));
}
}
}
```