I was looking into how to handle upserts with ef core and came across this: The Update method normally marks the entity for update, not insert. However, if the entity has a auto-generated key, and no key value has been set, then the entity is instead automatically marked for insert. https://docs.microsoft.com/en-us/ef/core/saving/disconnected-entities#saving-single-entities To be honest, I'm… Continue reading ef core upsert
