Is there a true equivalent of the T-SQL MERGE
statement in EF? I know they added AddOrUpdate
in a previous version which obviously handles the add or update aspect. It's missing the when not matched from source then delete from the target table.
This particular process is literally just syncing down a third party json structure wholesale. I haven't found anything on a wrapped add / update / delete function in Entity Framework. Thought I would ask on here or for any creative thoughts on wrapping this versus enumerating over the entity, checking for existence, and deleting where the key exists in the DB but not in the source entity.
Thanks.