FlexLabs.EntityFrameworkCore.Upsert 3.1.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package FlexLabs.EntityFrameworkCore.Upsert --version 3.1.0
                    
NuGet\Install-Package FlexLabs.EntityFrameworkCore.Upsert -Version 3.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FlexLabs.EntityFrameworkCore.Upsert" Version="3.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FlexLabs.EntityFrameworkCore.Upsert" Version="3.1.0" />
                    
Directory.Packages.props
<PackageReference Include="FlexLabs.EntityFrameworkCore.Upsert" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FlexLabs.EntityFrameworkCore.Upsert --version 3.1.0
                    
#r "nuget: FlexLabs.EntityFrameworkCore.Upsert, 3.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=FlexLabs.EntityFrameworkCore.Upsert&version=3.1.0
                    
Install FlexLabs.EntityFrameworkCore.Upsert as a Cake Addin
#tool nuget:?package=FlexLabs.EntityFrameworkCore.Upsert&version=3.1.0
                    
Install FlexLabs.EntityFrameworkCore.Upsert as a Cake Tool

Adds basic support for "Upsert" operations to EF Core.

Uses `INSERT … ON CONFLICT DO UPDATE` in PostgreSQL/Sqlite, `MERGE` in SqlServer and `INSERT INTO … ON DUPLICATE KEY UPDATE` in MySQL.

Also supports injecting sql command generators to add support for other providers

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (14)

Showing the top 5 NuGet packages that depend on FlexLabs.EntityFrameworkCore.Upsert:

Package Downloads
FenixAlliance.ACL.Dependencies

Application Component for the Alliance Business Suite.

HwApp.Core

HwApp Core

Elsa.Persistence.EntityFrameworkCore

Elsa is a set of workflow libraries and tools that enable super-fast workflowing capabilities in any .NET Core application. This package provides an Entity Framework Core persistence provider.

QuantFi.Services

Package Description

YYApp

YYApp Core

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on FlexLabs.EntityFrameworkCore.Upsert:

Repository Stars
PlexRipper/PlexRipper
A cross-platform Plex media downloader that seamlessly adds media from other Plex servers to your own!
Texnomic/SecureDNS
Secure, Modern, Fully-Featured, All-In-One Cross-Architecture & Cross-Platform DNS Server Using .NET 8.0
Kukks/NNostr
A Nostr Relay and Client written in C#
Version Downloads Last updated
9.0.0 36,475 3/3/2025
8.1.2 230,687 11/28/2024
8.1.0 13,189 11/24/2024 8.1.0 is deprecated because it has critical bugs.
8.0.0 1,449,726 12/3/2023
7.0.0 1,010,478 12/18/2022
7.0.0-beta.2 6,301 11/22/2022
7.0.0-beta.1 455 11/16/2022
6.0.2 522,054 11/16/2022
6.0.1 4,239,886 1/2/2022
6.0.0-preview5 58,084 7/11/2021
5.1.0 68,502 1/2/2022
5.0.0 373,246 7/11/2021
4.0.1 38,432 7/11/2021
4.0.0 382,193 3/2/2021
3.1.0 2,316,111 1/26/2020
3.0.0 107,907 9/29/2019
3.0.0-netcore3-00140 3,691 8/11/2019
2.2.1 110,456 9/17/2019
2.2.0 44,276 8/11/2019
2.1.2 90,759 5/22/2019
2.1.1 2,407 5/21/2019
2.1.0 2,950 5/19/2019
2.0.7 54,257 3/18/2019
2.0.6 11,396 2/6/2019
2.0.5 17,708 1/25/2019
2.0.4 8,783 1/3/2019
2.0.3 7,250 12/18/2018
2.0.2 12,251 11/3/2018
2.0.1 2,760 10/24/2018
2.0.0 11,325 9/19/2018
1.1.0 2,359 9/19/2018
1.0.4 14,295 3/10/2018
1.0.3 2,638 2/23/2018
1.0.2 2,420 2/20/2018
1.0.1 2,511 2/19/2018
1.0.0 4,309 2/18/2018

v3.1.0
- Referencing EF Core 3.1 only, due to internal namespace changes and compatibility issues with .NET Full Framework
+ Nulable type metadata
+ Adding support for upserting by identity column
+ Splitting the request into multiple queries if the query parameter limit is reached

v3.0.0
* EF Core 3 support

v2.2.1:      
+ Support for more expressions (Bitwise AND and bitwise OR)

v2.2.0:      
+ Support for more expressions (AND and OR)
+ Support for default column values and expressions
+ Null value handling in generated SQL
! Patched MySQL syntax for columns that haven't been updated but may be present in expressions