redb.Templates
4.2.2
Prefix Reserved
dotnet new install redb.Templates@4.2.2
RedBase Project Templates
Create a new RedBase application in seconds:
dotnet new install redb.Templates
dotnet new redb -n MyApp
cd MyApp
dotnet run
Every project runs as is: SQLite creates its database file next to the app, and Pro is on. Pro is free of charge for the whole 4.x line, no license key required.
Templates
| Short name | What it is |
|---|---|
redb |
Console app: create, load, update, query, tree |
redb-razor |
Razor Pages site: list with search, sorting and paging, create / edit form |
redb-blazor |
Blazor site (Interactive Server): products list and form, category tree |
redb-worker |
Integration worker: folder inbox, XSD check, one transaction, receipt; own host or a Tsak module |
redb-chat |
LLM chat with the history in RedBase; console and HTTP; options for tools and audit; own host or a Tsak module |
redb-app |
Blazor WebAssembly client and a redb.Route REST API with sign-in (JWT); the API runs in its own host or as a Tsak module |
redb-bff |
Blazor backend-for-frontend with a cookie session, and a backend of redb.Route controllers; the backend runs in its own host or as a Tsak module |
Every template configures RedBase the same way: with Pro, the PVT prefilter and change tracking are on, the props cache is off and the comment next to it shows how to turn it on.
redb: console app
Parameters
| Parameter | Values | Default | Description |
|---|---|---|---|
--db |
sqlite, postgres, mssql |
sqlite |
Database provider |
--pro |
true, false |
true |
Pro packages: compiled LINQ, change tracking, aggregation |
Examples
# SQLite + Pro (default)
dotnet new redb -n MyApp
# SQLite + Free
dotnet new redb -n MyApp --pro false
# PostgreSQL + Pro
dotnet new redb -n MyApp --db postgres
# SQL Server + Free
dotnet new redb -n MyApp --db mssql --pro false
For PostgreSQL and SQL Server, put your password into the connection string in Program.cs first. The database
named there must already exist: the app creates the RedBase tables in it, not the database itself.
What you get
A console app that walks through the basics:
- Initialize —
InitializeAsync(ensureCreated: true)creates the RedBase tables on the first run and syncs the schemes of your classes - Create, load, update, delete —
RedbObject<Product>with typed properties, an array among them - Query — LINQ over your own properties:
Query<Product>().Where(...).OrderByDescending(...) - Aggregation (Pro) —
AverageAsynccomputed in the database - Tree — a three-level category hierarchy with
CreateChildAsyncandLoadTreeAsync; deleting the root deletes its children
To switch the database later, follow the comments in RedbApp.csproj and Program.cs.
Links
- Documentation (EN): redbase.app
- Documentation (RU): redb.ru
- API Reference: redbase-app.github.io/redb
- Quick Start: redbase.app/quick-start
- GitHub: github.com/redbase-app/redb
- NuGet: nuget.org/packages/redb.Templates
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.2.2 | 89 | 10/5/2026 |
| 4.2.1 | 96 | 10/2/2026 |
| 4.2.0 | 95 | 9/30/2026 |
| 4.1.1 | 98 | 9/24/2026 |
| 4.1.0 | 110 | 9/21/2026 |
| 4.0.1 | 122 | 9/18/2026 |
| 4.0.0 | 126 | 9/11/2026 |
| 3.7.3 | 139 | 9/2/2026 |
| 3.7.2 | 148 | 8/26/2026 |
| 3.7.1 | 152 | 8/26/2026 |
| 3.6.0 | 183 | 8/13/2026 |
| 3.5.0 | 187 | 8/6/2026 |
| 3.4.0 | 198 | 7/27/2026 |
| 3.3.3 | 204 | 7/16/2026 |
| 3.3.0 | 220 | 7/8/2026 |
| 3.2.0 | 256 | 6/29/2026 |
| 3.0.0 | 282 | 5/29/2026 |
| 2.0.2 | 280 | 5/16/2026 |
| 2.0.1 | 297 | 5/8/2026 |