BulkInsertEf 1.1.1
dotnet add package BulkInsertEf --version 1.1.1
NuGet\Install-Package BulkInsertEf -Version 1.1.1
<PackageReference Include="BulkInsertEf" Version="1.1.1" />
paket add BulkInsertEf --version 1.1.1
#r "nuget: BulkInsertEf, 1.1.1"
// Install BulkInsertEf as a Cake Addin #addin nuget:?package=BulkInsertEf&version=1.1.1 // Install BulkInsertEf as a Cake Tool #tool nuget:?package=BulkInsertEf&version=1.1.1
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);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
- 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.
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