RavenDB附件 [英] RavenDB attachments
问题描述
我正在使用RavenDB并删除了一些带有附件的测试文档,然后再进行附件处理,因此我一直在徘徊它们是否仍在磁盘上,以及如何轻松地找到它们 ?.
I'm playing around with RavenDB and deleted few test documents that had attachments before I had any attachments handling, so I was wandering if they are still on the disk somewhere and how I can find them easily?.
另一个问题是:当文档被删除并且有附件时,附件会自动删除吗?
Another question is: When document is deleted and it had an attachment, will the attachment get auto deleted?
我已经浏览了RavenDB Web UI(服务器),但是找不到附件.
I have browsed through RavenDB Web UI (Server), but could not find attachments.
以防万一,下面是我添加的附件代码:
Just in case, below is my add attachment code:
_session.Advanced.DocumentStore.DatabaseCommands.PutAttachment(key, null, stream, optionalMetaData);
推荐答案
您可以通过转到 http://localhost:8080/static
并查看返回的json结果来实现.
You can do that by going to http://localhost:8080/static
and look at the json result that comes back.
这篇关于RavenDB附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!