我可以从Azure DocumentDB查询单个文档,如下所示:
var response = await client.ReadDocumentAsync( documentUri );
Run Code Online (Sandbox Code Playgroud)
如果文档不存在,则会抛出DocumentClientException.在我的程序中,我遇到的情况是文档可能存在,也可能不存在.是否有任何方法可以在不使用try-catch的情况下查询文档,而无需两次往返服务器,首先查询文档,然后检查文档是否存在?
如何通过表在Specflow中输入空值?
让我们看一个过于简单的例子:
When a tire is attached to a car
| CarId | TireModel | FabricationDate | Batch |
| 1 | Nokian Hakka R | 2015-09-1 | |
Run Code Online (Sandbox Code Playgroud)
Batch列中的空字符串按specflow解释为文本,因此为空字符串.是否有特殊语法将该列标记为null?