NpgsqlBulk.EFCore 0.9.0

Install-Package NpgsqlBulk.EFCore -Version 0.9.0
dotnet add package NpgsqlBulk.EFCore --version 0.9.0
<PackageReference Include="NpgsqlBulk.EFCore" Version="0.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NpgsqlBulk.EFCore --version 0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NpgsqlBulk.EFCore, 0.9.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NpgsqlBulk.EFCore as a Cake Addin
#addin nuget:?package=NpgsqlBulk.EFCore&version=0.9.0

// Install NpgsqlBulk.EFCore as a Cake Tool
#tool nuget:?package=NpgsqlBulk.EFCore&version=0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Npgsql.Bulk

Helper for performing COPY (bulk insert and update) operation easily, using Entity Framework + Npgsql.

.Net 4.5, Standard 2.0 are supported.

var uploader = new NpgsqlBulkUploader(context);
var data = GetALotOfData();

// To create a lot of objects
uploader.Insert(data);

// To update a lot of objects
uploader.Update(data);

For .Net 4.5 BulkSelect operation is implemented which emulates join in-memory table to DB table. Here is the example:

// We need DbContext first
var context = GetContext();                 

// Obtained a collection of 50k transactions
var transactions = GetListOfTransction();   

// Need to get prices from DB for all transactions, do it with 1 SQL call
var prices = context.Prices.BulkSelect(
    x => new { x.Ticker, x.TradedOn },                      // need to specify key for JOIN
    transactions.Select(x => new { x.Ticker, x.TradedOn })  // obtain key data from local objects
);

// Done, prices variable now contains List<Price> which matches the JOIN DB table to in-memory collection

NuGet packages (3)

Showing the top 3 NuGet packages that depend on NpgsqlBulk.EFCore:

Package Downloads
YY.EventLogExportAssistant.PostgreSQL

Library for exprorting 1C:Enterprise 8.x platform's event log files to PostgreSQL database

Yepp.App.Entities

Package Description

Emos.Crypto.Entity

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.9.0 40,779 11/19/2020
0.8.4 2,194 11/6/2020
0.8.3.1 392 11/2/2020
0.8.3 145 10/30/2020
0.8.2 11,021 9/3/2020
0.8.1.1 3,884 4/18/2020
0.8.1 202 4/18/2020
0.8.0 1,438 1/18/2020
0.8.0-beta 227 1/5/2020
0.7.7.1 12,194 11/23/2019
0.7.7 368 11/14/2019
0.7.6.2 265 10/18/2019
0.7.6.1 230 10/11/2019
0.7.6 238 10/6/2019
0.7.5 1,070 9/29/2019
0.7.4 1,341 7/20/2019
0.7.3 312 7/20/2019

.Net 5 support