更新时间:2022-06-16 21:58:11
我相信你指的是
I believe you are referring to the id
of a document, since you mentioned the auto-generated GUID.
所有文档在 id 属性(它是文档的主键)。如果在创建文档时未提供 id
,DocumentDB会为您生成一个。
All documents must have an unique value in the id
property (it is the primary key for the document). If an id
is not provided at the time of document creation, DocumentDB will generate one for you.
这里是在将XML转换为JSON之后,使用您选择的名称(例如MyXmlFile1,MyXmlFile2)简单地设置 id
字段。
The solution here is to simply set the id
field with the name of your choice (e.g. MyXmlFile1, MyXmlFile2) after you convert your XML to JSON.