BulkInsertEf 1.1.0
See the version list below for details.
dotnet add package BulkInsertEf --version 1.1.0
NuGet\Install-Package BulkInsertEf -Version 1.1.0
<PackageReference Include="BulkInsertEf" Version="1.1.0" />
paket add BulkInsertEf --version 1.1.0
#r "nuget: BulkInsertEf, 1.1.0"
// Install BulkInsertEf as a Cake Addin #addin nuget:?package=BulkInsertEf&version=1.1.0 // Install BulkInsertEf as a Cake Tool #tool nuget:?package=BulkInsertEf&version=1.1.0
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);
Learn more about Target Frameworks and .NET Standard.
-
- EntityFramework (>= 6.1.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Bulk insert for a single class and TPT type inheritance using entity framework.
No limitation on the number of records that can be passed.
New changes -
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