Linger.DataAccess.SqlServer 2.0.0-preview.1

This is a prerelease version of Linger.DataAccess.SqlServer.
dotnet add package Linger.DataAccess.SqlServer --version 2.0.0-preview.1
                    
NuGet\Install-Package Linger.DataAccess.SqlServer -Version 2.0.0-preview.1
                    
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="Linger.DataAccess.SqlServer" Version="2.0.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Linger.DataAccess.SqlServer" Version="2.0.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Linger.DataAccess.SqlServer" />
                    
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 Linger.DataAccess.SqlServer --version 2.0.0-preview.1
                    
#r "nuget: Linger.DataAccess.SqlServer, 2.0.0-preview.1"
                    
#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 Linger.DataAccess.SqlServer@2.0.0-preview.1
                    
#: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=Linger.DataAccess.SqlServer&version=2.0.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Linger.DataAccess.SqlServer&version=2.0.0-preview.1&prerelease
                    
Install as a Cake Tool

Linger.DataAccess.SqlServer

Migration guide for 2.0

SQL Server provider for Linger.DataAccess, including the optional IBulkInsert capability.

Installation

dotnet add package Linger.DataAccess.SqlServer

Usage

using Linger.DataAccess;
using Linger.DataAccess.SqlServer;
using Microsoft.Data.SqlClient;

using var database = new SqlServerHelper(connectionString);

bool hasUser = await database.HasRowsAsync(
    "SELECT 1 FROM dbo.Users WHERE Email = @email",
    [new SqlParameter("@email", email)],
    cancellationToken);

int nextId = await database.GetMaxIdAsync("UserId", "dbo.Users", cancellationToken);

IBulkInsert bulkInsert = database;
int written = await bulkInsert.BulkInsertAsync(
    dataTable,
    "dbo.Users",
    batchSize: 2000,
    timeout: 120,
    cancellationToken);

BulkInsert validates and quotes each part of a qualified table name. GetMaxId is intended only for single-writer scenarios; use IDENTITY or SEQUENCE when uniqueness must be guaranteed concurrently. BulkInsert maps destination columns by DataTable column name and rejects execution inside a transaction opened with BeginTrans.

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 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-preview.1 26 8/29/2026
1.6.4 107 8/16/2026
1.6.3 95 8/5/2026
1.6.2 110 8/2/2026
1.6.0 112 7/25/2026
1.5.5 103 7/23/2026
1.5.4-preview 93 7/21/2026
1.5.3-preview 95 7/20/2026
1.5.2-preview 98 7/19/2026
1.5.1-preview 94 7/15/2026
1.5.0-preview 90 7/14/2026
1.4.4-preview 96 6/16/2026
1.4.3-preview 99 6/15/2026
1.4.2 126 5/20/2026
1.4.1-preview 101 5/12/2026
1.4.0 106 5/6/2026
1.3.3-preview 95 5/5/2026
1.3.2-preview 102 4/29/2026
1.3.1-preview 111 4/28/2026
1.3.0-preview 103 4/27/2026
Loading failed