我目前正在尝试从Cloudant DB批量阅读文档。到目前为止,我已经在JavaScript中进行了批量阅读。但是,我正在尝试使用C#,这是不同的。
这是我在JavaScript中所做的,可以在C#中完成吗?
db.allDocs({
include_docs: true,
attachments: true,
startkey: 'receipt',
endkey: 'receipt\uffff'
}).then(function (result) {
});
答案 0 :(得分:0)
你有几个选择,主要可能是:
以下是MyCouch的摘录:
系统视图
如果要使用其中一个内置CouchDb系统视图,请使用带有一个参数的QueryViewRequest构造函数。以下是使用视图all_docs的示例:
var query = new QueryViewRequest("_all_docs"); var response = await client.Views.QueryAsync<dynamic>(query);
来源:https://github.com/danielwertheim/mycouch/wiki/documentation#system-views