EF.Toolkit.Bulk.SqlServer 10.0.0-alpha.7

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

EF.Toolkit.Bulk.SqlServer

The SQL Server provider for EF.Toolkit.Bulk. Install this package rather than the core one: it brings the core with it and supplies the executor that does the actual work on SQL Server.

Install

dotnet add package EF.Toolkit.Bulk.SqlServer

Setup

One call, after the provider:

services.AddDbContext<AppDb>(o => o
    .UseSqlServer(connectionString)
    .UseBulkOperations());

If you reference both provider packages, UseBulkOperations is ambiguous — use UseSqlServerBulk().

What this package provides

Everything in the core is provider-neutral until a batch has been grouped by (table, state, column shape). This package is what that batch is handed to:

How it runs on SQL Server
Insert SqlBulkCopy
Generated keys staging table + MERGE … OUTPUT
Update / delete staging table + UPDATE … FROM / DELETE … FROM, with OUTPUT
Upsert MERGE with $action
Synchronize WHEN NOT MATCHED BY SOURCE THEN DELETE

Update, delete and merge carry a source ordinal through the staging table, so a returned row maps back to the row that produced it by position rather than by matching key values. SQL Server's OUTPUT may name a table from the statement's FROM clause, so the ordinal comes back directly.

Unlike PostgreSQL, SQL Server has no sequence behind an IDENTITY column, so this provider stages with an ordinal on every version rather than reserving keys up front.

Staging tables are indexed on their join columns above StagingIndexThreshold rows.

Supported versions

SQL Server 2022, covered by the differential harness on every commit. 2019 and Azure SQL are likely to work — nothing here depends on a 2022-only feature — but are not tested.

Full documentation

Everything else — transparent versus explicit mode, the explicit API, change tracking, options, diagnostics, measured performance and limitations — is in the EF.Toolkit.Bulk documentation.

License

MIT

Product Compatible and additional computed target framework versions.
.NET 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.

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
10.0.0-alpha.7 69 10/18/2026
10.0.0-alpha.6 117 8/18/2026
10.0.0-alpha.5 91 8/15/2026
10.0.0-alpha.4 93 8/14/2026
10.0.0-alpha.3 89 8/14/2026
10.0.0-alpha.2 86 8/9/2026
10.0.0-alpha.1 100 8/9/2026