zonkey.scaffold 7.0.3

dotnet tool install --global zonkey.scaffold --version 7.0.3
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local zonkey.scaffold --version 7.0.3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=zonkey.scaffold&version=7.0.3
                    
nuke :add-package zonkey.scaffold --version 7.0.3
                    

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

Code generation · Data classes · Full docs

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
7.0.3 83 8/13/2026
7.0.1 91 8/6/2026

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.