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
                    
if you are setting up this repo
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
                    
nuke :add-package xtraq --version 1.1.0
                    

Xtraq

NuGet Tests

πŸ‘‰ 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

  1. Install – dotnet tool install --global xtraq
  2. Configure – xtraq init writes non-secret defaults to .xtraqconfig (required). Secrets can live in a project-scoped .env, but .env is optional for offline/DB-less work.
  3. Snapshot – xtraq snapshot pulls stored procedure metadata and result shapes into the local cache.
  4. Generate – xtraq build emits strongly typed C# artefacts ready to commit, package, or publish.

Environment overrides

  • Set XTRAQ_PROJECT_PATH to 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 xtraq rather than editing */Xtraq/ folders.

License

This project is under Free Use, No Warranty license.

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 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