【问题标题】:DocumentDB document link for Azure Cosmos DBAzure Cosmos DB 的 DocumentDB 文档链接
【发布时间】:2018-04-13 13:28:24
【问题描述】:

如果我有一个具有以下设置的 Azure Cosmos 数据库

数据库名称:我的数据库

收藏:我的收藏

如何使用 UriFactory 创建文档链接以在 CreateDocumentAsync(documentLink, document) 中使用?

我查看了 Microsoft 文档 here,但这似乎使用文档 ID 来删除文档,我想创建一个文档。

【问题讨论】:

    标签: azure-cosmosdb asp.net-core-2.0 document-database


    【解决方案1】:

    Uri myUri = UriFactory.CreateDocumentCollectionUri("MyDatabase", "MyCollection");

    【讨论】:

      猜你喜欢
      • 2021-03-10
      • 2017-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多