https://github.com/dbnetlink/dbnetsuitecore.templates
DbNetSuiteCore.Templates
https://github.com/dbnetlink/dbnetsuitecore.templates
Last synced: 3 months ago
JSON representation
DbNetSuiteCore.Templates
- Host: GitHub
- URL: https://github.com/dbnetlink/dbnetsuitecore.templates
- Owner: dbnetlink
- Created: 2023-11-03T10:22:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-10-25T10:02:42.000Z (8 months ago)
- Last Synced: 2025-10-25T12:05:31.363Z (8 months ago)
- Language: HTML
- Size: 54.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# DbNetSuiteCore
**DbNetSuiteCore** is a set of ASP.Net Core application UI development components for Razor pages, MVC and Blazor Server and are designed to enable the rapid development of data driven web applications. **DbNetSuiteCore** currently supports the following data sources MSSQL, MySQL, MariaDB, PostgreSQL, Oracle, MongoDB and SQLite databases along with JSON (files and API), CSV and Excel files and the file system itself.
Simply add DbNetSuiteCore to your pipeline as follows:
```c#
{
using DbNetSuiteCore.Middleware; // <= Add this line
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDbNetSuiteCore(); // <= Add this line
builder.Services.AddRazorPages();
var app = builder.Build();
app.UseDbNetSuiteCore(); // <= Add this line
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapRazorPages();
app.Run();
}
```
You can then add a component to your Razor page or MVC view as follows:
```razor
@page
@using DbNetSuiteCore.Enums
@using DbNetSuiteCore.Models
@DbNetSuiteCore.Resources.StyleSheet() @* Add the stylesheet *@
@{
GridModel customerGrid = new GridModel(DataSourceType.SQLite, "Northwind", "Customers");
@(await DbNetSuiteCore.Control.Create(HttpContext).Render(customerGrid))
}
@DbNetSuiteCore.Resources.ClientScript() @* Add the client-side library *@
```
```razor
MVC view should use Context instead of HttpContext
...
@{
GridModel customerGrid = new GridModel(DataSourceType.SQLite, "Northwind", "Customers");
@(await DbNetSuiteCore.Control.Create(Context).Render(customerGrid))
}
...
```
For demos [click here](https://dbnetsuitecore.com/) and for the documentation [click here](https://github.com/dbnetlink/DbNetSuiteCore2/wiki)