Azure存储表中的InsertOrUpdate与InsertOrMerge,有什么区别? [英] InsertOrUpdate vs. InsertOrMerge in Azure Storage Tables, what is the difference?

查看:70
本文介绍了Azure存储表中的InsertOrUpdate与InsertOrMerge,有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在查看了这两种方法的Microsoft文档之后,我发现两者之间没有任何区别,或者也许我错过了一些东西.我已经对InsertOrMerge进行了一些试验,但是它所做的全部将新数据替换为旧数据.

After looking at the Microsoft documentation for both of these methods, I don't see any difference between two, or maybe I've missed something. I've experimented a little with InsertOrMerge, but all it does it replace the old data with the new data.

推荐答案

InsertOrUpdate =替换整个实体,包括删除新实体中未定义的任何字段.

InsertOrUpdate = replaces the entire entity, including removing any fields that were not defined in the new entity.

InsertOrMerge =如果新实体不包含旧字段和值,则旧字段和值将保留,并且所有其他字段将被更新.

InsertOrMerge = The old fields and values remain if the new entity does not include them, and all the other fields will be updated.

这篇关于Azure存储表中的InsertOrUpdate与InsertOrMerge,有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆