FlexLabs.EntityFrameworkCore.Upsert 2.0.2

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

Install-Package FlexLabs.EntityFrameworkCore.Upsert -Version 2.0.2
dotnet add package FlexLabs.EntityFrameworkCore.Upsert --version 2.0.2
paket add FlexLabs.EntityFrameworkCore.Upsert --version 2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

+ Adding support for EF 2.1 Type Conversions
+ Adding support for static property/field accessors (e.g. DateTime.Now)
* Explicitly throwing an exception when using identity keys as upsert match columns (since it wouldn't have worked correctly anyway)
+ Added help links to exceptions linking to more details
+ Added support for basic type conversions and modulo operator in expressions

Version History

Version Downloads Last updated
2.0.2 802 11/3/2018
2.0.1 302 10/24/2018
2.0.0 4,785 9/19/2018
1.1.0 53 9/19/2018
1.0.4 4,212 3/10/2018
1.0.3 152 2/23/2018
1.0.2 104 2/20/2018
1.0.1 123 2/19/2018
1.0.0 107 2/18/2018