Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dbnetlink/dbnetsuitecore2

ASP.NET Core middleware UI components for Razor views based on HTMX
https://github.com/dbnetlink/dbnetsuitecore2

component csv database excel htmx mariadb mssql mysql postgresql razor spreadsheet sqlite tailwindcss

Last synced: 12 days ago
JSON representation

ASP.NET Core middleware UI components for Razor views based on HTMX

Awesome Lists containing this project

README

        

### Introduction ###
This project is a set of data driven ASP.NET Core components based on Razor views, HTMX, Tailwind CSS and JavaScript. The components can be added to any ASP.NET Core web application as middleware and the components can be added to any existing web page. The goal is to creats a set of components that are lightweight, easy to add to any web page and highly configurable.

Currently the components support the following data sources:

- MSSQL
- SQLite
- MySql
- MariaDB
- PostgreSql
- MongoDB
- Excel
- CSV
- JSON
- File System

### To add **DbNetSuiteCore** to your web application add the following to your **program.cs** file ###
```
var builder = WebApplication.CreateBuilder(args);
...
builder.Services.AddDbNetSuiteCore()
...
app.UseDbNetSuiteCore();
...
```
### To add to your Razor page ###
```
@page
@using DbNetSuiteCore.Enums
@using DbNetSuiteCore.Models
@{
Layout = null;
var customerGrid = new GridModel(DataSourceType.SQlite, "Sakila", "Customer"); <-- Configure the component
}

@DbNetSuiteCore.Resources.StyleSheet() <-- Add the stylesheet


@(await new DbNetSuiteCore.GridControl(HttpContext).Render(customerGrid)) <-- Render the component

@DbNetSuiteCore.Resources.ClientScript() <-- Render the client script

```