xtraq 1.1.0
dotnet tool install --global xtraq --version 1.1.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local xtraq --version 1.1.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=xtraq&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package xtraq --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Xtraq
π Explore the full documentation on GitHub Pages: https://nuetzliches.github.io/xtraq/
Xtraq turns SQL Server stored procedures into strongly typed, production-ready C# libraries. The CLI targets .NET 10.0 by default while staying multi-targeted for .NET 8.0 clients that need the current LTS.
What Xtraq does
- Generates C# access layers from stored procedures, including inputs, result models, context helpers, and execution pipelines.
- Captures database intent by snapshotting procedure signatures, nullability, and types into a repeatable cache.
- Reflects JSON procedures by translating JSON outputs into strongly typed records that respect nested payloads and options.
- Packages reusable artefacts you can ship as shared libraries, NuGet packages, or internal SDKs.
- Decouples schema delivery by generating versioned client SDKs that ship independently from the database deployment cadence.
Key benefits
- Stay aligned with the database β every regeneration reflects the exact SQL contract, preventing drift and runtime surprises.
- Slash boilerplate β no manual ADO.NET plumbing, magic strings, or copy-paste DTOs.
- Build confidence in CI/CD β deterministic outputs make diff reviews meaningful and keep client libraries in sync with migrations.
- Empower mixed teams β DBAs define the contract; application developers consume typed APIs with nullable annotations and async helpers.
Who itβs for
Database administrators
- Publish a ready-to-use access layer in minutes without maintaining custom client libraries.
- Share consistent naming, nullability, and metadata with every consuming application.
- Catch signature drift early thanks to snapshot diffs before changes reach production.
Application developers
- Work with strongly typed, nullable-aware models that mirror the database exactly.
- Call async helpers that enforce parameter completeness, ordering, and defaults automatically.
- Regenerate clients in CI so every service stays aligned with the latest schema.
Quick start
- Install β
dotnet tool install --global xtraq - Configure β
xtraq initwrites non-secret defaults to.xtraqconfig(required). Secrets can live in a project-scoped.env, but.envis optional for offline/DB-less work. - Snapshot β
xtraq snapshotpulls stored procedure metadata and result shapes into the local cache. - Generate β
xtraq buildemits strongly typed C# artefacts ready to commit, package, or publish.
Environment overrides
- Set
XTRAQ_PROJECT_PATHto pin the CLI to a specific project root when running commands from outside the repository.
Requirements
.NET 10 SDK β primary target framework for new generators and samples.
.NET 8 SDK β optional when you must build against the current LTS.
Generated artefacts are read-only β rerun
xtraqrather than editing*/Xtraq/folders.
License
This project is under Free Use, No Warranty license.
| 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 is compatible. 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 |
|---|---|---|
| 1.1.0 | 83 | 2/19/2026 |
| 1.0.9 | 102 | 1/9/2026 |
| 1.0.8 | 289 | 12/18/2025 |
| 1.0.7 | 270 | 12/15/2025 |
| 1.0.6 | 194 | 12/5/2025 |
| 1.0.5 | 184 | 12/5/2025 |
| 1.0.4 | 665 | 12/2/2025 |
| 1.0.2 | 667 | 12/1/2025 |
| 1.0.1 | 567 | 12/1/2025 |
| 1.0.0 | 570 | 12/1/2025 |
| 1.0.0-rc.10 | 375 | 11/30/2025 |
| 1.0.0-rc.9 | 319 | 11/30/2025 |
| 1.0.0-rc.8 | 72 | 11/29/2025 |
| 1.0.0-rc.7 | 77 | 11/29/2025 |
| 1.0.0-rc.6 | 98 | 11/28/2025 |
| 1.0.0-rc.5 | 137 | 11/27/2025 |
| 1.0.0-rc.4 | 134 | 11/27/2025 |
| 1.0.0-rc.3 | 140 | 11/26/2025 |
| 1.0.0-rc.2 | 141 | 11/26/2025 |
| 1.0.0-rc.1 | 143 | 11/23/2025 |
Loading failed