zonkey.scaffold
7.0.1
See the version list below for details.
dotnet tool install --global zonkey.scaffold --version 7.0.1
dotnet new tool-manifest
dotnet tool install --local zonkey.scaffold --version 7.0.1
#tool dotnet:?package=zonkey.scaffold&version=7.0.1
nuke :add-package zonkey.scaffold --version 7.0.1
zonkey-scaffold
Generates Zonkey data classes and a DatabaseWrapper from a live database. SQLite, PostgreSQL, MySQL/MariaDB, and SQL Server.
dotnet tool install -g zonkey.scaffold
zonkey-scaffold --provider pgsql \
--connection "Host=localhost;Database=zoo;Username=app;Password=..." \
--namespace Zoo.Data \
--out ./Data
The output is a starting point — review it, rename what you like, and edit it in place. It is not meant to be regenerated forever.
Options
| Option | Meaning |
|---|---|
-p, --provider |
sqlite, pgsql, mysql, mssql |
-c, --connection |
ADO.NET connection string |
-n, --namespace |
Namespace for generated classes |
-o, --out |
Output directory (default: current) |
--schema |
Schema to read; omit for all non-system schemas |
--wrapper-class |
Wrapper class name (default: AppDatabase) |
--Language |
CSharp (default) or VB |
--Emit:Relations |
Emit graph members from foreign keys, plus batched Fill…For loaders |
--dry-run |
Report what would be written, write nothing |
Settings bind through IConfiguration, so anything else is --Section:Key value:
zonkey-scaffold ... --IgnoreTables "__*;aspnet_*" --Views true --Emit:FieldKeyword false
The same keys load from zonkey.scaffold.json and ZONKEY_SCAFFOLD_* environment variables (file, then environment, then command line). Don't put a connection string in a committed JSON file.
For coding agents
zonkey-scaffold skill --install
Writes a skill to .claude/skills/zonkey-scaffold/SKILL.md covering the workflow and the provider-specific traps.
Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
First release. Generates Zonkey data classes and a DatabaseWrapper from a live SQLite, PostgreSQL, MySQL/MariaDB, or SQL Server database, replacing the legacy Zonkey.CodeGen (WinForms/SMO) and NpgCodeGen tools with one cross-platform CLI. Emits C# or VB.NET, optional foreign-key relation members with batched Fill extensions, and ships an installable agent skill via "zonkey-scaffold skill --install". Settings bind through IConfiguration: command line, ZONKEY_SCAFFOLD_* environment variables, or zonkey.scaffold.json.