Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dbnetlink/dbnetsuitecore2
- Owner: dbnetlink
- License: mit
- Created: 2024-05-29T16:06:48.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-12-10T14:08:19.000Z (13 days ago)
- Last Synced: 2024-12-10T15:20:45.695Z (13 days ago)
- Topics: component, csv, database, excel, htmx, mariadb, mssql, mysql, postgresql, razor, spreadsheet, sqlite, tailwindcss
- Language: TSQL
- Homepage: https://dbnetsuitecore.com
- Size: 80.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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```