在以前的版本中就有这种方法-var terms = new GetTermsOperation("Raven/DocumentsByEntityName", "Tag", "", 1024);但是现在不起作用了。我试图使用另一个命令:var op = new GetCollectionStatisticsOperation();var collectionStats = store.Maintenance.Send(op);但这会引发错误-System.ArgumentNullException:'值不能为null。参数名称:键'然后,我发现了如何从浏览器管理面板中获取所有集合:from @all_docs select distinct @metadata.@collection如何将该代码段转换为C#代码?
2 回答
慕田峪7331174
TA贡献1828条经验 获得超13个赞
如果您没有在文档存储级别分配数据库,则需要显式指定它,如下所示:
var collectionStats = store.Maintenance.ForDatabase("db-name").Send(op);
- 2 回答
- 0 关注
- 124 浏览
添加回答
举报
0/150
提交
取消