EF.Toolkit.Bulk.SqlServer
10.0.0-alpha.6
See the version list below for details.
dotnet add package EF.Toolkit.Bulk.SqlServer --version 10.0.0-alpha.6
NuGet\Install-Package EF.Toolkit.Bulk.SqlServer -Version 10.0.0-alpha.6
<PackageReference Include="EF.Toolkit.Bulk.SqlServer" Version="10.0.0-alpha.6" />
<PackageVersion Include="EF.Toolkit.Bulk.SqlServer" Version="10.0.0-alpha.6" />
<PackageReference Include="EF.Toolkit.Bulk.SqlServer" />
paket add EF.Toolkit.Bulk.SqlServer --version 10.0.0-alpha.6
#r "nuget: EF.Toolkit.Bulk.SqlServer, 10.0.0-alpha.6"
#:package EF.Toolkit.Bulk.SqlServer@10.0.0-alpha.6
#addin nuget:?package=EF.Toolkit.Bulk.SqlServer&version=10.0.0-alpha.6&prerelease
#tool nuget:?package=EF.Toolkit.Bulk.SqlServer&version=10.0.0-alpha.6&prerelease
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 | Versions 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. |
-
net10.0
- EF.Toolkit.Bulk (>= 10.0.0-alpha.6)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.0 && < 11.0.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.0 && < 11.0.0)
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 | 94 | 8/14/2026 |
| 10.0.0-alpha.3 | 90 | 8/14/2026 |
| 10.0.0-alpha.2 | 86 | 8/9/2026 |
| 10.0.0-alpha.1 | 100 | 8/9/2026 |