Merge/Upsert/AddOrUpdate support
Author: NickAbCreated Feb 10, 2016Updated Sep 17, 2026
Labelsneeds-designarea-save-changesarea-change-tracking
In my project I need to insert entity if it does not exist yet, or update it otherwise (somewhat like `UPSERT` in mongodb). As I understand in SQL it can be accomplished using `MERGE`, but I was not able to find `MERGE` in EF Core.
Source: dotnet/efcore