BulkInsertEf 1.1.1

Bulk insert for a single class and TPT type inheritance using entity framework.
No limitation on the number of records that can be passed.
Now supporting string, number, guids, date, datetime, datetimeoffset and boolean types.
Instead of passing the dbcontext everytime, just set it once while declaring the BulkInsert object

Install-Package BulkInsertEf -Version 1.1.1
dotnet add package BulkInsertEf --version 1.1.1
<PackageReference Include="BulkInsertEf" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BulkInsertEf --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Just pass the DbContext as parameter to the constructor and use the following methods as per your needs.
Following methods have been exposed out of this library -
To bulk insert records.

void BulkInsertCommand(IEnumerable<object> values);

To bulk insert records in case of TPT inheritance

void BulkInsertCommandForTPT(IEnumerable<object> values, string parentName, string foreignKeys);

Just pass the DbContext as parameter to the constructor and use the following methods as per your needs.
Following methods have been exposed out of this library -
To bulk insert records.

void BulkInsertCommand(IEnumerable<object> values);

To bulk insert records in case of TPT inheritance

void BulkInsertCommandForTPT(IEnumerable<object> values, string parentName, string foreignKeys);

Release Notes

Bulk insert for a single class and TPT type inheritance using entity framework.
No limitation on the number of records that can be passed.

Changelog-
1. Now supporting string, number, guids, date, datetime, datetimeoffset and boolean types.
2. Instead of declaring the dbcontext every time, just set it once while declaring the BulkInsert object

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.1 420 10/8/2017
1.1.0 316 10/8/2017
1.0.0 314 9/27/2017