如何在 RavenDB Studio (RQL) 中插入更新文档

问题描述 投票:0回答:1

我在 ravenDb 上有一个任务,我已经编写了有关选择、排序、过滤等的查询。但是我无法弄清楚如何简单地将新文档添加到名为“Employees”的集合或从“employees”更新文档“employees/8-A”中的值。

我已经使用这些链接浏览了文档:

https://ravendb.net/docs/article-page/5.4/csharp/client-api/operations/patching/set-based https://ravendb.net/docs/article-page/5.4/csharp/client-api/operations/patching/single-document

我什至用谷歌搜索并发现了这个线程; 在 RavenDB 中更新文档 但是其中一篇链接的文章被删除了。

但这只是JS代码。没有我可以在 raven db studio 的查询工具中运行的语法吗?

sql database ravendb
1个回答
0
投票

查看以下演示和演练:

添加/创建新文档:
https://demo.ravendb.net/demos/csharp/basics/create-document
加载和编辑文档:
https://demo.ravendb.net/demos/csharp/basics/load-and-edit-document

© www.soinside.com 2019 - 2024. All rights reserved.