EntityFrameworkCore.Toolbox 9.0.1

dotnet add package EntityFrameworkCore.Toolbox --version 9.0.1
                    
NuGet\Install-Package EntityFrameworkCore.Toolbox -Version 9.0.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="EntityFrameworkCore.Toolbox" Version="9.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EntityFrameworkCore.Toolbox" Version="9.0.1" />
                    
Directory.Packages.props
<PackageReference Include="EntityFrameworkCore.Toolbox" />
                    
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 EntityFrameworkCore.Toolbox --version 9.0.1
                    
#r "nuget: EntityFrameworkCore.Toolbox, 9.0.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 EntityFrameworkCore.Toolbox@9.0.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=EntityFrameworkCore.Toolbox&version=9.0.1
                    
Install as a Cake Addin
#tool nuget:?package=EntityFrameworkCore.Toolbox&version=9.0.1
                    
Install as a Cake Tool

EntityFrameworkCore.Toolbox

Extensions and ease of life code to automattically handle working with Entity Framework and related datasets.

Tested and working with Entity Framework Core Sql Server. Other backends may require additional work. Open to pull requests.

EfBulkCopy

Easily upload entities to a database, bypassing the database context entirely by automatting the mapping to SqlBulkCopy:

await dbContext.BulkCopyAsync(myData);

Or even pull from another source entirely via passing a map of TEntity.Property.Name and a fetch function:

await dbContext.BulkCopyAsync<TEntity, TSource>>(myData, entityNameToPropertyGetterMap);

Enum reference helpers

Add reference tables to the database automatically or as needed.

public class MyDbContext : DbContext
{
...
	protected override void OnModelCreating(ModelBuilder modelBuilder)
	{
		modelBuilder.AddEnumReferenceTable<MyEnum>(); // Add enums one at a time

		modelBuilder.AddEnumReferenceTables(); // Add all enums in the context
	}
...
}
Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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
9.0.1 254 2/11/2025
9.0.0 2,192 11/15/2024
8.0.14 193 3/13/2025
8.0.12 172 2/11/2025
8.0.11 140 11/15/2024

Add cancellationtokens add helper extension methods