DBAClientX.Core 0.15.0

dotnet add package DBAClientX.Core --version 0.15.0
                    
NuGet\Install-Package DBAClientX.Core -Version 0.15.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DBAClientX.Core" Version="0.15.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DBAClientX.Core" Version="0.15.0" />
                    
Directory.Packages.props
<PackageReference Include="DBAClientX.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DBAClientX.Core --version 0.15.0
                    
#r "nuget: DBAClientX.Core, 0.15.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DBAClientX.Core@0.15.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DBAClientX.Core&version=0.15.0
                    
Install as a Cake Addin
#tool nuget:?package=DBAClientX.Core&version=0.15.0
                    
Install as a Cake Tool

DbaClientX.Core

Core building blocks for DbaClientX: retryable execution pipeline, parameter mapping for POCOs/dictionaries, SQL query builder/compiler, and light utilities.

  • Target Frameworks: net472, net8.0, net10.0
  • NuGet: DBAClientX.Core

Install

 dotnet add package DBAClientX.Core

Quick start (POCO → parameters → execute)

using DBAClientX.Invoker;
using DBAClientX.Mapping;

var items = new [] { new { Id = 1, Name = "Alice" } };
var map   = new Dictionary<string,string> { ["Id"] = "@Id", ["Name"] = "@Name" };

await DbInvoker.ExecuteSqlAsync(
    providerAlias: "sqlserver",          // sqlserver|mssql|postgresql|postgres|pgsql|mysql|sqlite|oracle
    connectionString: "Server=.;Database=App;Trusted_Connection=True;",
    sql: "INSERT INTO Users(Id,Name) VALUES(@Id,@Name)",
    items: items,
    map: map,
    options: new DbParameterMapperOptions { DateTimeOffsetAsUtcDateTime = true }
);

Provider aliases, canonical names, and generic executor type names come from DbaConnectionFactory.SupportedProviders. Use DbaConnectionFactory.TryGetProvider when a host needs to normalize user input without maintaining its own alias switch.

DbInvoker enumerates input lazily when no batch size is set. Parallel execution uses a fixed worker set, so the number of queued operations does not grow with the input sequence; ParallelDegree is capped by DbExecutionOptions.MaximumParallelDegree.

Query builder (safe identifiers and explicit raw SQL)

using DBAClientX.QueryBuilder;

var sql = QueryBuilder
    .Select("Id", "Name")
    .From("dbo.Users")
    .Where("IsActive", true)
    .OrderBy("Name")
    .Compile(SqlDialect.SqlServer);

Identifier methods quote every identifier; spaces and parentheses no longer switch the compiler into raw-SQL mode. Use an explicit raw method only for trusted expressions:

var aggregate = new Query()
    .Select("DepartmentId")
    .SelectRaw("COUNT(*)")
    .From("Employees")
    .GroupBy("DepartmentId")
    .HavingRaw("COUNT(*)", ">", 5)
    .OrderByRaw("COUNT(*) DESC");

For aliased joins, prefer the identifier overload so tables, aliases, and both sides of the condition are quoted:

var joined = new Query()
    .Select("u.Id", "o.Total")
    .From("Users", "u")
    .Join("Orders", "o", "u.Id", "=", "o.UserId");

SelectRaw, FromRaw, JoinRaw, WhereRaw, GroupByRaw, HavingRaw, and OrderByRaw emit caller-authored SQL. Never pass user input to these methods. The legacy two-string join overloads remain available for migration but are obsolete because they treat both arguments as raw SQL. Comparison operators are limited to the supported safe operator set, and Limit, Offset, and Top reject negative values.

For multipart table or schema names, DbaIdentifierPath provides the shared delimiter-aware split and unquote behavior used by bulk operations and table-copy planning.

Retry behavior

Provider clients and streaming-reader startup use the same TransientRetry engine. MaxRetryAttempts includes the first attempt, RetryDelay is the exponential-backoff base, and non-query retries remain disabled by default to avoid replaying a write that may already have succeeded.

Notes

  • Ship a per-provider package alongside Core for ADO.NET specifics (see provider READMEs).
  • DbParameterMapper supports dotted paths and ambient values.
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. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on DBAClientX.Core:

Package Downloads
DBAClientX.SQLite

DbaClientX SQLite provider

DBAClientX.PostgreSql

DbaClientX PostgreSql provider

DBAClientX.SqlServer

DbaClientX SQL Server provider

DBAClientX.Oracle

DbaClientX Oracle provider

DBAClientX.MySql

DbaClientX MySql provider

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.15.0 36 8/2/2026
0.14.0 34 8/2/2026
0.13.0 990 7/12/2026
0.12.0 1,884 7/12/2026
0.11.0 646 6/28/2026
0.10.0 289 6/21/2026
0.9.0 1,523 6/20/2026
0.8.0 1,365 6/19/2026
0.7.0 1,975 5/25/2026
0.6.0 1,414 4/12/2026
0.5.0 933 4/11/2026
0.4.0 608 3/28/2026
0.3.0 6,254 3/10/2026
0.2.0 6,299 10/2/2025