RavenDB attachments

你说的曾经没有我的故事 提交于 2019-12-11 03:21:42

问题


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?

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);

回答1:


You can do that by going to http://localhost:8080/static and look at the json result that comes back.



来源:https://stackoverflow.com/questions/11302145/ravendb-attachments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!