RavenDB: Use Fiddler to retrieve the structure of the queries sent to the database

邮差的信 提交于 2019-12-12 06:26:19

问题


Is it possible to use Fiddler 4 to retrieve the structure of the queries sent to RavendB (C#)? In fact, I am currently using session.Query() to write queries to manage the data stored in a RavenDB database. I would like to transform all these queries into session.Advanced.DocumentQuery() queries. But, some of these queries are complex. Is it possible to use fiddler to see how RavenDB transform the session.Query() queries I run into session.Advanced.DocumentQuery() queries? If so, how can I proceed? Thanks in advance.


回答1:


You can more easily get the string of the query by just calling .ToString() on the query object.

Alternatively, you can pipe everything through fiddler, by specifying http://localhost.fiddler:8080 as the db url in ravendb.



来源:https://stackoverflow.com/questions/34418915/ravendb-use-fiddler-to-retrieve-the-structure-of-the-queries-sent-to-the-databa

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