NpgsqlBulk.EFCore
0.10.1
.NET Standard 2.0
Install-Package NpgsqlBulk.EFCore -Version 0.10.1
dotnet add package NpgsqlBulk.EFCore --version 0.10.1
<PackageReference Include="NpgsqlBulk.EFCore" Version="0.10.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NpgsqlBulk.EFCore --version 0.10.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NpgsqlBulk.EFCore, 0.10.1"
#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.10.1
// Install NpgsqlBulk.EFCore as a Cake Tool
#tool nuget:?package=NpgsqlBulk.EFCore&version=0.10.1
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
Available on NuGet:
Install-Package Npgsql.Bulk
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Universal Windows Platform | netcore50 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 3.1.0)
- System.Reflection.Emit (>= 4.7.0)
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.10.1 | 19,012 | 12/10/2021 |
0.10.0 | 114 | 12/10/2021 |
0.9.0 | 80,573 | 11/19/2020 |
0.8.4 | 2,761 | 11/6/2020 |
0.8.3.1 | 565 | 11/2/2020 |
0.8.3 | 221 | 10/30/2020 |
0.8.2 | 13,357 | 9/3/2020 |
0.8.1.1 | 4,972 | 4/18/2020 |
0.8.1 | 284 | 4/18/2020 |
0.8.0 | 1,572 | 1/18/2020 |
0.8.0-beta | 280 | 1/5/2020 |
0.7.7.1 | 14,422 | 11/23/2019 |
0.7.7 | 458 | 11/14/2019 |
0.7.6.2 | 341 | 10/18/2019 |
0.7.6.1 | 308 | 10/11/2019 |
0.7.6 | 343 | 10/6/2019 |
0.7.5 | 2,017 | 9/29/2019 |
0.7.4 | 1,461 | 7/20/2019 |
0.7.3 | 408 | 7/20/2019 |
Fix for generators