GitPedia

EntityFramework.BulkInsert

Fast bulk insert for EntityFramework6

From ghost1face·Updated June 7, 2026·View on GitHub·

Updated port of EntityFramework.BulkInsert from the original version on the Codeplex site. This is not my original project, this is to keep it going and add minor updates and support. The original was hosted on Codeplex but later taken down. Since then the project has seen support for async IO, bug fixes, explicit transaction support and support for MySql. The project is written primarily in C#, distributed under the Apache License 2.0 license, first published in 2015. Key topics include: bulk-inserts, ef6, entity-framework, mysql, sql.

EntityFramework.BulkInsert

Updated port of EntityFramework.BulkInsert from the original version on the Codeplex site. This is not my original project, this is to keep it going and add minor updates and support. The original was hosted on Codeplex but later taken down. Since then the project has seen support for async IO, bug fixes, explicit transaction support and support for MySql.

NuGet

There are several NuGet packages available:

  • EntityFramework6.BulkInsert NuGet

  • EntityFramework6.BulkInsert.SqlServerCe NuGet

  • EntityFramework6.BulkInsert.MySql NuGet

Purpose

The purpose of this library is for performing Bulk Inserts using EntityFramework 6 and your existing DbContext instance to perform faster inserts instead of generating multiple insert statements for a collection of strongly typed objects.

Usage

cs
IEnumerable<Car> cars = GenerateCars(); using (var context = GetDbContext()) { context.BulkInsert<Car>(cars); }

Async IO support is also built in:

cs
IEnumerable<Car> cars = GenerateCars(); using (var context = GetDbContext()) { await context.BulkInsertAsync<Car>(cars); }

This library supports Explicit and Implicit transactions either using IDbTransaction or TransactionScope

Building

To build/compile clone this repository and build:

git clone https://github.com/ghost1face/EntityFramework.BulkInsert.git

Contributors

Showing top 5 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from ghost1face/EntityFramework.BulkInsert via the GitHub API.Last fetched: 6/14/2026